@tap-payments/auth-jsconnect 2.6.18-test → 2.6.19-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 (40) hide show
  1. package/build/@types/app.d.ts +18 -1
  2. package/build/app/settings.d.ts +3 -1
  3. package/build/app/settings.js +18 -13
  4. package/build/assets/locales/ar.json +3 -1
  5. package/build/assets/locales/en.json +3 -1
  6. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  7. package/build/components/Slide/Slide.d.ts +1 -1
  8. package/build/constants/app.js +12 -0
  9. package/build/constants/dummy.d.ts +17 -0
  10. package/build/constants/dummy.js +292 -0
  11. package/build/features/app/connect/connectStore.d.ts +8 -2
  12. package/build/features/app/connect/connectStore.js +57 -9
  13. package/build/features/app/connectExpress/connectExpressStore.d.ts +1 -0
  14. package/build/features/app/connectExpress/connectExpressStore.js +55 -11
  15. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
  16. package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
  17. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  18. package/build/features/connect/Connect.js +24 -14
  19. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  20. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +79 -0
  21. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  22. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  23. package/build/features/connectExpress/ConnectExpress.js +12 -6
  24. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  25. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +79 -0
  26. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  27. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  28. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
  29. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
  30. package/build/features/featuresScreens.js +10 -0
  31. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  32. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
  33. package/build/features/shared/Address/CountryList.d.ts +1 -1
  34. package/build/features/shared/Address/InputSelect.d.ts +1 -1
  35. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +10 -0
  36. package/build/features/shared/BusinessCountry/BusinessCountry.js +170 -0
  37. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  38. package/build/features/shared/BusinessCountry/index.js +2 -0
  39. package/build/features/shared/Footer/Footer.js +2 -1
  40. package/package.json +1 -1
@@ -214,7 +214,7 @@ export interface LibConfig extends LibCallbacks {
214
214
  merchantDomain: string;
215
215
  language: LanguageMode;
216
216
  appInfo: AppInfo;
217
- businessCountryCode: string;
217
+ businessCountryCode?: string;
218
218
  scope: string;
219
219
  postURL?: string;
220
220
  redirectUrl?: string;
@@ -730,4 +730,21 @@ interface TerminalAuthorizes {
730
730
  status: string;
731
731
  status_message: string;
732
732
  }
733
+ export declare type CountryInfo = {
734
+ id: number;
735
+ label: string;
736
+ country: {
737
+ name_en: string;
738
+ name_ar: string;
739
+ iso2: string;
740
+ iso3: string;
741
+ idd_prefix: string;
742
+ logo: string;
743
+ };
744
+ };
745
+ export declare type BusinessCountryInfo = {
746
+ id: number;
747
+ title: string;
748
+ countries: Array<CountryInfo>;
749
+ };
733
750
  export {};
@@ -1,5 +1,5 @@
1
1
  import { RootState } from './store';
2
- import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, ConfigExpressTokenParams } from '../@types';
2
+ import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, ConfigExpressTokenParams, BusinessCountryInfo } from '../@types';
3
3
  interface SettingParams {
4
4
  disableCountries?: boolean;
5
5
  disableLocale?: boolean;
@@ -27,6 +27,8 @@ export interface SettingsData {
27
27
  isMaturityExpress: boolean;
28
28
  isHijri: boolean;
29
29
  authId?: string;
30
+ ipCountry: CountryCode;
31
+ businessCountries: Array<BusinessCountryInfo>;
30
32
  }
31
33
  export interface SettingsState extends SharedState<SettingsData> {
32
34
  internalLoading: boolean;
@@ -48,12 +48,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
50
  import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl } from '../utils';
51
- import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
51
+ import { BUSINESS_COUNTRIES, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
52
52
  import i18n from '../i18n';
53
53
  import { updateLocale } from '../utils/locale';
54
54
  import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
55
55
  export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
56
- var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, configInfo, matureData, lang, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, domain, language_1, country, scope, public_key, maturity_1, board_maturity, post, platform_redirect_url, data, deviceInfo, isValidOperator, countries, countryCode, businessCountry;
56
+ var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, configInfo, matureData, lang, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, country_code, domain, language_1, country, scope, public_key, maturity_1, board_maturity, post, platform_redirect_url, data, deviceInfo, isValidOperator, countries, countryCode, businessCountry, ipCountry;
57
57
  return __generator(this, function (_f) {
58
58
  switch (_f.label) {
59
59
  case 0:
@@ -79,7 +79,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
79
79
  case 2:
80
80
  _d = _f.sent(), country_list = _d.country_list, ip_info = _d.ip_info, merchant = _d.merchant, operator = _d.operator, config = _d.config;
81
81
  list = (country_list || { list: [] }).list;
82
- _e = ip_info || {}, ip = _e.ip, latitude = _e.latitude, longitude = _e.longitude;
82
+ _e = ip_info || {}, ip = _e.ip, latitude = _e.latitude, longitude = _e.longitude, country_code = _e.country_code;
83
83
  if (config) {
84
84
  domain = config.domain, language_1 = config.language, country = config.country, scope = config.scope, public_key = config.public_key, maturity_1 = config.maturity, board_maturity = config.board_maturity, post = config.post, platform_redirect_url = config.platform_redirect_url, data = config.data;
85
85
  configInfo = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), (domain && { merchantDomain: domain })), (language_1 && { language: language_1 })), (country && { businessCountryCode: country })), (scope && { scope: scope })), (public_key && { publicKey: public_key })), ((post === null || post === void 0 ? void 0 : post.url) && { postURL: post === null || post === void 0 ? void 0 : post.url })), (platform_redirect_url && { redirectUrl: platform_redirect_url })), (data && { data: data }));
@@ -135,10 +135,13 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
135
135
  isValidOperator = operator === 'valid';
136
136
  countries = sortCountries(list);
137
137
  countryCode = configInfo.businessCountryCode;
138
- businessCountry = findCountryByIso2(countries, countryCode);
139
- if (!businessCountry)
140
- throw new Error('Business country not found, you have to pass a valid business country code in the lib config');
141
- return [2, __assign(__assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (config && { boardMaturity: config.board_maturity })), (merchant && { merchant: merchant }))];
138
+ businessCountry = undefined;
139
+ ipCountry = undefined;
140
+ if (countryCode)
141
+ businessCountry = findCountryByIso2(countries, countryCode);
142
+ if (country_code)
143
+ ipCountry = findCountryByIso2(countries, country_code);
144
+ return [2, __assign(__assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (config && { boardMaturity: config.board_maturity })), (merchant && { merchant: merchant }))];
142
145
  }
143
146
  });
144
147
  }); });
@@ -198,6 +201,8 @@ var initialState = {
198
201
  deviceInfo: DefaultDeviceInfo,
199
202
  appConfig: {},
200
203
  businessCountry: {},
204
+ businessCountries: BUSINESS_COUNTRIES,
205
+ ipCountry: {},
201
206
  countries: [],
202
207
  isValidOperator: false,
203
208
  isHijri: false
@@ -293,11 +298,9 @@ export var settingsSlice = createSlice({
293
298
  state.data.activeScreen = action.payload[0];
294
299
  },
295
300
  handleSetAppConfig: function (state, action) {
296
- var _a = action.payload, appInfo = _a.appInfo, businessCountryCode = _a.businessCountryCode, language = _a.language, onError = _a.onError, onFlowCompleted = _a.onFlowCompleted, publicKey = _a.publicKey, merchantDomain = _a.merchantDomain, open = _a.open, scope = _a.scope;
301
+ var _a = action.payload, appInfo = _a.appInfo, language = _a.language, onError = _a.onError, onFlowCompleted = _a.onFlowCompleted, publicKey = _a.publicKey, merchantDomain = _a.merchantDomain, open = _a.open, scope = _a.scope;
297
302
  if (!appInfo.name)
298
303
  throw new Error('App name is required');
299
- if (!businessCountryCode)
300
- throw new Error('Business country is required');
301
304
  if (!language)
302
305
  throw new Error('Language is required');
303
306
  if (!publicKey)
@@ -327,16 +330,18 @@ export var settingsSlice = createSlice({
327
330
  state.error = null;
328
331
  });
329
332
  builder.addCase(fetchAppSettingsSync.fulfilled, function (state, action) {
330
- var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress;
333
+ var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry;
331
334
  state.data.countries = countries;
332
335
  state.data.businessCountry = businessCountry;
336
+ state.data.ipCountry = ipCountry;
333
337
  state.data.deviceInfo = deviceInfo;
334
338
  state.data.isValidOperator = isValidOperator;
335
339
  if (merchant)
336
340
  state.data.merchant = merchant;
337
341
  state.data.isMaturityExpress = isMaturityExpress;
338
- if (locale)
339
- updateLocale(locale, businessCountry.iso2);
342
+ var countryIso2 = (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2) || (ipCountry === null || ipCountry === void 0 ? void 0 : ipCountry.iso2);
343
+ if (locale && countryIso2)
344
+ updateLocale(locale, countryIso2);
340
345
  state.loading = false;
341
346
  state.internalLoading = false;
342
347
  if (state.data.appConfig.onReady)
@@ -428,5 +428,7 @@
428
428
  "select_merchant_placeholder": "الرجاء تحديد تاجر",
429
429
  "select_terminal_label": "Terminal",
430
430
  "select_terminal_placeholder": "الرجاء تحديد محطة طرفية",
431
- "close_and_complete_later": "اغلق الان و اكمل لاحقا"
431
+ "close_and_complete_later": "اغلق الان و اكمل لاحقا",
432
+ "country_list_title": "الرجاء تحديد بلدك",
433
+ "Choose_any_country": "بحث عن البلد ..."
432
434
  }
@@ -458,5 +458,7 @@
458
458
  "select_merchant_placeholder": "Please select a merchant",
459
459
  "select_terminal_label": "Terminal",
460
460
  "select_terminal_placeholder": "Please select a terminal",
461
- "close_and_complete_later": "Close and Complete Later"
461
+ "close_and_complete_later": "Close and Complete Later",
462
+ "country_list_title": "Please select your country",
463
+ "choose_any_country": "Search Country..."
462
464
  }
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { SxProps, Theme } from '@mui/material/styles';
2
3
  interface ExpandIconProps {
3
4
  anchorEl?: boolean;
4
5
  onClick?: () => void;
6
+ sx?: SxProps<Theme>;
5
7
  }
6
8
  export default function CustomExpandIcon(props: ExpandIconProps): JSX.Element;
7
9
  export {};
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { SlideProps as MUISlideProps } from '@mui/material/Slide';
3
3
  export interface SlideProps extends MUISlideProps {
4
4
  }
5
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "timeout" | "in" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
5
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "in" | "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "timeout" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
6
6
  export default _default;
@@ -36,6 +36,12 @@ export var CONNECT_SCREENS_NAVIGATION = [
36
36
  prev: ['CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP'],
37
37
  order: 1
38
38
  },
39
+ {
40
+ name: 'CONNECT_BUSINESS_COUNTRY_STEP',
41
+ next: ['CONNECT_NID_STEP', 'CONNECT_MOBILE_STEP'],
42
+ prev: '',
43
+ order: 1
44
+ },
39
45
  {
40
46
  name: 'CONNECT_VERIFY_PACI_STEP',
41
47
  next: 'CONNECT_INDIVIDUAL_STEP',
@@ -92,6 +98,12 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
92
98
  prev: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_CIVIL_ID_STEP'],
93
99
  order: 1
94
100
  },
101
+ {
102
+ name: 'CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP',
103
+ next: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_MOBILE_STEP'],
104
+ prev: '',
105
+ order: 1
106
+ },
95
107
  {
96
108
  name: 'CONNECT_EXPRESS_VERIFY_PACI_STEP',
97
109
  next: [
@@ -371,3 +371,20 @@ export declare const BRAND_LIST: {
371
371
  };
372
372
  website: string;
373
373
  }[];
374
+ export declare const BUSINESS_COUNTRIES: {
375
+ id: number;
376
+ title: string;
377
+ countries: {
378
+ id: number;
379
+ label: string;
380
+ country: {
381
+ id: number;
382
+ name_en: string;
383
+ name_ar: string;
384
+ iso2: string;
385
+ iso3: string;
386
+ idd_prefix: string;
387
+ logo: string;
388
+ };
389
+ }[];
390
+ }[];
@@ -6764,3 +6764,295 @@ export var BRAND_LIST = [
6764
6764
  website: 'www.test5.com'
6765
6765
  }
6766
6766
  ];
6767
+ export var BUSINESS_COUNTRIES = [
6768
+ {
6769
+ id: 1,
6770
+ title: 'Middle East',
6771
+ countries: [
6772
+ {
6773
+ id: 1,
6774
+ label: 'sa',
6775
+ country: {
6776
+ id: 187,
6777
+ name_en: 'Saudi Arabia',
6778
+ name_ar: 'المملكة العربية السعودية',
6779
+ iso2: 'SA',
6780
+ iso3: 'SAU',
6781
+ idd_prefix: '966',
6782
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/SA.svg'
6783
+ }
6784
+ },
6785
+ {
6786
+ id: 10,
6787
+ label: 'bh',
6788
+ country: {
6789
+ id: 16,
6790
+ name_en: 'Bahrain',
6791
+ name_ar: 'البحرين',
6792
+ iso2: 'BH',
6793
+ iso3: 'BHR',
6794
+ idd_prefix: '973',
6795
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/BH.svg'
6796
+ }
6797
+ },
6798
+ {
6799
+ id: 2,
6800
+ label: 'eg',
6801
+ country: {
6802
+ id: 63,
6803
+ name_en: 'Egypt',
6804
+ name_ar: 'مصر',
6805
+ iso2: 'EG',
6806
+ iso3: 'EGY',
6807
+ idd_prefix: '20',
6808
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/EG.svg'
6809
+ }
6810
+ },
6811
+ {
6812
+ id: 4,
6813
+ label: 'jo',
6814
+ country: {
6815
+ id: 107,
6816
+ name_en: 'Jordan',
6817
+ name_ar: 'الأردن',
6818
+ iso2: 'JO',
6819
+ iso3: 'JOR',
6820
+ idd_prefix: '962',
6821
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/JO.svg'
6822
+ }
6823
+ },
6824
+ {
6825
+ id: 5,
6826
+ label: 'kw',
6827
+ country: {
6828
+ id: 111,
6829
+ name_en: 'Kuwait',
6830
+ name_ar: 'الكويت',
6831
+ iso2: 'KW',
6832
+ iso3: 'KWT',
6833
+ idd_prefix: '965',
6834
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/KW.svg'
6835
+ }
6836
+ },
6837
+ {
6838
+ id: 11,
6839
+ label: 'lb',
6840
+ country: {
6841
+ id: 115,
6842
+ name_en: 'Lebanon',
6843
+ name_ar: 'لبنان',
6844
+ iso2: 'LB',
6845
+ iso3: 'LBN',
6846
+ idd_prefix: '961',
6847
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/LB.svg'
6848
+ }
6849
+ },
6850
+ {
6851
+ id: 12,
6852
+ label: 'om',
6853
+ country: {
6854
+ id: 155,
6855
+ name_en: 'Oman',
6856
+ name_ar: 'عمان',
6857
+ iso2: 'OM',
6858
+ iso3: 'OMN',
6859
+ idd_prefix: '968',
6860
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/OM.svg'
6861
+ }
6862
+ },
6863
+ {
6864
+ id: 13,
6865
+ label: 'qa',
6866
+ country: {
6867
+ id: 168,
6868
+ name_en: 'Qatar',
6869
+ name_ar: 'قطر',
6870
+ iso2: 'QA',
6871
+ iso3: 'QAT',
6872
+ idd_prefix: '974',
6873
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/QA.svg'
6874
+ }
6875
+ },
6876
+ {
6877
+ id: 14,
6878
+ label: 'ae',
6879
+ country: {
6880
+ id: 223,
6881
+ name_en: 'United Arab Emirates',
6882
+ name_ar: 'الإمارات العربية المتحدة',
6883
+ iso2: 'AE',
6884
+ iso3: 'ARE',
6885
+ idd_prefix: '971',
6886
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/AE.svg'
6887
+ }
6888
+ }
6889
+ ]
6890
+ },
6891
+ {
6892
+ id: 2,
6893
+ title: 'Europe',
6894
+ countries: [
6895
+ {
6896
+ id: 6,
6897
+ label: 'uk',
6898
+ country: {
6899
+ id: 224,
6900
+ name_en: 'United Kingdom',
6901
+ name_ar: 'المملكة المتحدة لبريطانيا العظمى وآيرلندا الشمالية',
6902
+ iso2: 'GB',
6903
+ iso3: 'GBR',
6904
+ idd_prefix: '44',
6905
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/GB.svg'
6906
+ }
6907
+ },
6908
+ {
6909
+ id: 7,
6910
+ label: 'ir',
6911
+ country: {
6912
+ id: 101,
6913
+ name_en: 'Ireland',
6914
+ name_ar: 'آيرلندا',
6915
+ iso2: 'IE',
6916
+ iso3: 'IRL',
6917
+ idd_prefix: '353',
6918
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/IE.svg'
6919
+ }
6920
+ },
6921
+ {
6922
+ id: 17,
6923
+ label: 'fr',
6924
+ country: {
6925
+ id: 73,
6926
+ name_en: 'France',
6927
+ name_ar: 'فرنسا',
6928
+ iso2: 'FR',
6929
+ iso3: 'FRA',
6930
+ idd_prefix: '33',
6931
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/FR.svg'
6932
+ }
6933
+ },
6934
+ {
6935
+ id: 18,
6936
+ label: 'nt',
6937
+ country: {
6938
+ id: 145,
6939
+ name_en: 'Netherlands',
6940
+ name_ar: 'هولندا',
6941
+ iso2: 'NL',
6942
+ iso3: 'NLD',
6943
+ idd_prefix: '31',
6944
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/NL.svg'
6945
+ }
6946
+ },
6947
+ {
6948
+ id: 19,
6949
+ label: 'gm',
6950
+ country: {
6951
+ id: 79,
6952
+ name_en: 'Germany',
6953
+ name_ar: 'ألمانيا',
6954
+ iso2: 'DE',
6955
+ iso3: 'DEU',
6956
+ idd_prefix: '49',
6957
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/DE.svg'
6958
+ }
6959
+ },
6960
+ {
6961
+ id: 20,
6962
+ label: 'sp',
6963
+ country: {
6964
+ id: 199,
6965
+ name_en: 'Spain',
6966
+ name_ar: 'إسبانيا',
6967
+ iso2: 'ES',
6968
+ iso3: 'ESP',
6969
+ idd_prefix: '34',
6970
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/ES.svg'
6971
+ }
6972
+ },
6973
+ {
6974
+ id: 21,
6975
+ label: 'it',
6976
+ country: {
6977
+ id: 103,
6978
+ name_en: 'Italy',
6979
+ name_ar: 'إيطاليا',
6980
+ iso2: 'IT',
6981
+ iso3: 'ITA',
6982
+ idd_prefix: '39',
6983
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/IT.svg'
6984
+ }
6985
+ }
6986
+ ]
6987
+ },
6988
+ {
6989
+ id: 6,
6990
+ title: 'South Asia',
6991
+ countries: [
6992
+ {
6993
+ id: 15,
6994
+ label: 'pk',
6995
+ country: {
6996
+ id: 156,
6997
+ name_en: 'Pakistan',
6998
+ name_ar: 'باكستان',
6999
+ iso2: 'PK',
7000
+ iso3: 'PAK',
7001
+ idd_prefix: '92',
7002
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/PK.svg'
7003
+ }
7004
+ },
7005
+ {
7006
+ id: 16,
7007
+ label: 'in',
7008
+ country: {
7009
+ id: 97,
7010
+ name_en: 'India',
7011
+ name_ar: 'الهند',
7012
+ iso2: 'IN',
7013
+ iso3: 'IND',
7014
+ idd_prefix: '91',
7015
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/IN.svg'
7016
+ }
7017
+ }
7018
+ ]
7019
+ },
7020
+ {
7021
+ id: 4,
7022
+ title: 'East Asia',
7023
+ countries: [
7024
+ {
7025
+ id: 8,
7026
+ label: 'hk',
7027
+ country: {
7028
+ id: 45,
7029
+ name_en: 'China, Hong Kong Special Administrative Region',
7030
+ name_ar: 'منطقة هونغ كونغ الصينية الإدارية الخاصة',
7031
+ iso2: 'HK',
7032
+ iso3: 'HKG',
7033
+ idd_prefix: '852',
7034
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/HK.svg'
7035
+ }
7036
+ }
7037
+ ]
7038
+ },
7039
+ {
7040
+ id: 5,
7041
+ title: 'South East Asia',
7042
+ countries: [
7043
+ {
7044
+ id: 9,
7045
+ label: 'sg',
7046
+ country: {
7047
+ id: 192,
7048
+ name_en: 'Singapore',
7049
+ name_ar: 'سنغافورة',
7050
+ iso2: 'SG',
7051
+ iso3: 'SGP',
7052
+ idd_prefix: '65',
7053
+ logo: 'https://tap-assets.b-cdn.net/icons/dashboard/light/country/SG.svg'
7054
+ }
7055
+ }
7056
+ ]
7057
+ }
7058
+ ];
@@ -1,6 +1,7 @@
1
1
  import { RootState } from '../../../app/store';
2
2
  import { ActionState, AuthForType, CivilFormValues, CountryCode, FlowsTypes, IndividualFormValues, MobileFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, BrandFormValues, BrandSegmentFormValues } from '../../../@types';
3
3
  import { CancelToken } from 'axios';
4
+ export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
4
5
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
5
6
  response: any;
6
7
  formData: MobileFormValues;
@@ -40,7 +41,10 @@ export declare const updateLeadIndividual: import("@reduxjs/toolkit").AsyncThunk
40
41
  export declare const retrieveLead: import("@reduxjs/toolkit").AsyncThunk<{
41
42
  data: any;
42
43
  countryCode: CountryCode;
43
- }, string, {}>;
44
+ }, {
45
+ leadId: string;
46
+ isRedirect?: boolean | undefined;
47
+ }, {}>;
44
48
  export declare const retrieveSegmentDataList: import("@reduxjs/toolkit").AsyncThunk<{
45
49
  segmentLocation: any;
46
50
  segmentProfit: any;
@@ -81,6 +85,7 @@ export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
81
85
  formData: void;
82
86
  }, void, {}>;
83
87
  export interface ConnectData {
88
+ leadId: string;
84
89
  mobileData: (MobileFormValues | undefined) & ResponseData;
85
90
  nidData: NIDFormValues & ResponseData & {
86
91
  type: string;
@@ -99,6 +104,7 @@ export interface ConnectState extends SharedState<ConnectData> {
99
104
  }
100
105
  export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectState, {
101
106
  clearError: (state: ConnectState) => void;
107
+ storeLeadId: (state: ConnectState, action: ActionState<string>) => void;
102
108
  stopLoader: (state: ConnectState) => void;
103
109
  resetMobileScreen: (state: ConnectState, action: ActionState<CountryCode>) => void;
104
110
  resetNIDScreen: (state: ConnectState) => void;
@@ -109,7 +115,7 @@ export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectState
109
115
  setDefaultCountryCode: (state: ConnectState, action: ActionState<CountryCode>) => void;
110
116
  resetStore: (state: ConnectState) => void;
111
117
  }, "connect/store">;
112
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMerchantScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>;
118
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetMerchantScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>;
113
119
  declare const _default: import("redux").Reducer<ConnectState, import("redux").AnyAction>;
114
120
  export default _default;
115
121
  export declare const connectSelector: (state: RootState) => ConnectState;