@tap-payments/auth-jsconnect 1.0.41 → 1.0.45

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 (37) hide show
  1. package/build/@types/app.d.ts +9 -33
  2. package/build/api/data.d.ts +1 -0
  3. package/build/api/data.js +5 -1
  4. package/build/api/entity.d.ts +3 -4
  5. package/build/api/index.d.ts +2 -2
  6. package/build/api/lead.d.ts +1 -2
  7. package/build/api/lead.js +3 -7
  8. package/build/components/AnimationFlow/BottomSheet.js +3 -23
  9. package/build/components/Footer/Footer.d.ts +3 -1
  10. package/build/components/Footer/Footer.js +11 -47
  11. package/build/constants/api.d.ts +2 -2
  12. package/build/constants/api.js +5 -5
  13. package/build/constants/dummy.d.ts +14 -36
  14. package/build/constants/dummy.js +29 -53
  15. package/build/features/app/business/businessStore.d.ts +9 -7
  16. package/build/features/app/business/businessStore.js +81 -51
  17. package/build/features/app/connect/connectStore.js +1 -1
  18. package/build/features/business/screens/Activities/Activities.js +6 -1
  19. package/build/features/business/screens/BusinessType/BusinessType.js +2 -3
  20. package/build/features/business/screens/BusinessType/CompanyLicense.d.ts +2 -2
  21. package/build/features/business/screens/BusinessType/CompanyLicense.js +9 -6
  22. package/build/features/business/screens/BusinessType/FreelanceLicense.d.ts +2 -2
  23. package/build/features/business/screens/BusinessType/FreelanceLicense.js +9 -9
  24. package/build/features/business/screens/Customers/CustomerLocations.js +14 -4
  25. package/build/features/business/screens/Customers/Customers.js +17 -10
  26. package/build/features/business/screens/Customers/ExpectedCustomers.js +14 -4
  27. package/build/features/business/screens/Customers/ExpectedSalesRange.js +14 -4
  28. package/build/features/connect/screens/Individual/Email.js +1 -1
  29. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  30. package/build/features/connect/screens/Mobile/Mobile.js +1 -2
  31. package/build/features/connect/screens/NID/NID.js +1 -2
  32. package/build/features/shared/Containers/FeatureContainer.js +1 -1
  33. package/build/features/shared/Containers/ScreenContainer.js +1 -1
  34. package/build/features/shared/Footer/Footer.js +7 -1
  35. package/build/hooks/useElementSizeById.d.ts +6 -0
  36. package/build/hooks/useElementSizeById.js +12 -0
  37. package/package.json +1 -1
@@ -47,8 +47,9 @@ export declare enum SocialMediaTypes {
47
47
  }
48
48
  export interface CustomerLocation {
49
49
  id: number;
50
- name: string;
51
- nameAR: string;
50
+ value: string;
51
+ titleAr: string;
52
+ title: string;
52
53
  }
53
54
  export interface ExpectedCustomer extends CustomerLocation {
54
55
  }
@@ -58,38 +59,13 @@ export declare enum BusinessType {
58
59
  CR = "company",
59
60
  FL = "freelancer"
60
61
  }
61
- export interface FLLicense {
62
- number: string;
63
- status: string;
64
- canceled_at: string;
65
- license_specialities: Array<LicenseSpecialties>;
66
- }
67
- interface LicenseSpecialties {
68
- speciality: LicenseSpecialty;
69
- }
70
- interface LicenseSpecialty {
71
- id: string;
72
- name: string;
73
- name_en: string;
74
- category: LicenseCategory;
75
- }
76
- interface LicenseCategory {
77
- id: string;
78
- name: string;
79
- name_en: string;
80
- }
81
- export interface CRLicense {
82
- crName: string;
83
- crNumber: string;
84
- crEntityNumber: string;
85
- isMain: string;
86
- businessType: {
87
- id: number;
88
- name: string;
62
+ export interface License {
63
+ legal_name: {
64
+ ar: string;
65
+ en: string;
89
66
  };
90
- relation: {
91
- id: number;
92
- name: string;
67
+ license: {
68
+ number: string;
93
69
  };
94
70
  }
95
71
  export interface Activity {
@@ -2,5 +2,6 @@ declare const dataService: {
2
2
  getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
3
3
  getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
5
+ getExpectedCutomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
5
6
  };
6
7
  export { dataService };
package/build/api/data.js CHANGED
@@ -9,9 +9,13 @@ var getCustomerBases = function () {
9
9
  var getExpectedSales = function () {
10
10
  return instance.get("".concat(ENDPOINT_PATHS.SALES));
11
11
  };
12
+ var getExpectedCutomerSales = function () {
13
+ return instance.get("".concat(ENDPOINT_PATHS.EXPECTED_CUSTOMERS));
14
+ };
12
15
  var dataService = {
13
16
  getChannelsOfServices: getChannelsOfServices,
14
17
  getCustomerBases: getCustomerBases,
15
- getExpectedSales: getExpectedSales
18
+ getExpectedSales: getExpectedSales,
19
+ getExpectedCutomerSales: getExpectedCutomerSales
16
20
  };
17
21
  export { dataService };
@@ -1,13 +1,12 @@
1
- import { CustomerLocation, ExpectedCustomer, ExpectedSaleRange } from '../@types';
2
1
  import { AxiosRequestConfig } from 'axios';
3
2
  export declare type EntityInfoUpdateBody = {
4
3
  activities?: Array<string>;
5
4
  business_operation_start_at?: string;
6
5
  channel_services?: Array<string>;
7
6
  physical_store_available?: boolean;
8
- yearly_sales_range?: ExpectedSaleRange;
9
- customers_served_monthly?: ExpectedCustomer;
10
- customers_base?: Array<CustomerLocation>;
7
+ yearly_sales_range?: string;
8
+ customers_served_monthly?: string;
9
+ customers_base?: Array<string>;
11
10
  vat_id?: string;
12
11
  agree_chargeback?: boolean;
13
12
  agree_refund?: boolean;
@@ -27,8 +27,7 @@ declare const API: {
27
27
  verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
28
28
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
29
29
  updateLeadIdentity: (data: LeadIdentityUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
30
- retrieveCRInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
31
- retrieveFLInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
30
+ retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
32
31
  };
33
32
  entityService: {
34
33
  updateEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -47,6 +46,7 @@ declare const API: {
47
46
  getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
48
47
  getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
49
48
  getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
49
+ getExpectedCutomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
50
50
  };
51
51
  };
52
52
  export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoUpdateBody, CreateAccountBody };
@@ -85,7 +85,6 @@ declare const leadService: {
85
85
  verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
86
86
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
87
87
  updateLeadIdentity: (data: LeadIdentityUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
88
- retrieveCRInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
89
- retrieveFLInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
88
+ retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
90
89
  };
91
90
  export { leadService };
package/build/api/lead.js CHANGED
@@ -18,11 +18,8 @@ var verifyLeadOTP = function (data, config) {
18
18
  var updateLeadIdentity = function (data, config) {
19
19
  return instance.put("".concat(ENDPOINT_PATHS.LEAD_IDENTITY), data, config);
20
20
  };
21
- var retrieveCRInfos = function (leadId) {
22
- return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_CR, "/").concat(leadId));
23
- };
24
- var retrieveFLInfos = function (leadId) {
25
- return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_FL, "/").concat(leadId));
21
+ var retrieveEntityList = function (leadId) {
22
+ return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_ENTITY_LIST, "/").concat(leadId));
26
23
  };
27
24
  var leadService = {
28
25
  createLead: createLead,
@@ -31,7 +28,6 @@ var leadService = {
31
28
  verifyLeadToken: verifyLeadToken,
32
29
  verifyLeadOTP: verifyLeadOTP,
33
30
  updateLeadIdentity: updateLeadIdentity,
34
- retrieveCRInfos: retrieveCRInfos,
35
- retrieveFLInfos: retrieveFLInfos
31
+ retrieveEntityList: retrieveEntityList
36
32
  };
37
33
  export { leadService };
@@ -24,7 +24,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { BottomSheet } from 'react-spring-bottom-sheet';
26
26
  import { styled } from '@mui/material/styles';
27
- import { useWindowSize } from '../../hooks';
28
27
  import 'react-spring-bottom-sheet/dist/style.css';
29
28
  var BottomSheetStyled = styled(BottomSheet)(function (_a) {
30
29
  var theme = _a.theme;
@@ -53,29 +52,10 @@ var BottomSheetStyled = styled(BottomSheet)(function (_a) {
53
52
  });
54
53
  var BottomSheetComponent = function (_a) {
55
54
  var open = _a.open, children = _a.children, rest = __rest(_a, ["open", "children"]);
56
- var height = useWindowSize().height;
57
55
  var getMinHeight = function (maxHeight) {
58
- if (height < 500)
59
- return maxHeight * 0.95;
60
- if (height >= 500 && height < 550)
61
- return maxHeight * 0.93;
62
- if (height >= 550 && height < 600)
63
- return maxHeight * 0.87;
64
- if (height >= 600 && height < 650)
65
- return maxHeight * 0.8;
66
- if (height >= 650 && height < 700)
67
- return maxHeight * 0.75;
68
- if (height >= 700 && height < 750)
69
- return maxHeight * 0.7;
70
- if (height >= 750 && height < 800)
71
- return maxHeight * 0.65;
72
- if (height >= 800 && height < 850)
73
- return maxHeight * 0.6;
74
- if (height >= 850 && height < 900)
75
- return maxHeight * 0.57;
76
- if (height >= 900 && height < 950)
77
- return maxHeight * 0.55;
78
- return maxHeight * 0.5;
56
+ var element = document.getElementById('main-feature-container');
57
+ var height = element ? element.clientHeight + 30 : 0;
58
+ return height || maxHeight * 0.7;
79
59
  };
80
60
  return (_jsx(BottomSheetStyled, __assign({ open: open, snapPoints: function (_a) {
81
61
  var maxHeight = _a.maxHeight;
@@ -4,9 +4,11 @@ export interface FooterProps extends BoxProps {
4
4
  onSwitchLanguage: () => void;
5
5
  followUsTitle?: string;
6
6
  language?: string;
7
+ countryName: string;
8
+ countryFlag: string;
7
9
  }
8
10
  declare const _default: React.MemoExoticComponent<{
9
- ({ language, onSwitchLanguage, ...rest }: FooterProps): JSX.Element;
11
+ ({ language, countryName, countryFlag, onSwitchLanguage, ...rest }: FooterProps): JSX.Element;
10
12
  defaultProps: {
11
13
  followUsTitle: string;
12
14
  language: string;
@@ -20,20 +20,16 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
26
  import Text from '../Text';
27
- import Link from '@mui/material/Link';
28
- import InstagramIcon from '@mui/icons-material/Instagram';
29
- import FacebookIcon from '@mui/icons-material/Facebook';
30
- import LinkedInIcon from '@mui/icons-material/LinkedIn';
31
- import TwitterIcon from '@mui/icons-material/Twitter';
32
- import YouTubeIcon from '@mui/icons-material/YouTube';
33
27
  import Box from '@mui/material/Box';
28
+ import Icon from '../Icon';
29
+ import { useLanguage } from '../../hooks';
34
30
  var FooterStyled = styled(Box)(function (_a) {
35
31
  var theme = _a.theme;
36
- return (__assign(__assign({ direction: 'ltr', display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
32
+ return (__assign(__assign({ direction: theme.direction, display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
37
33
  });
38
34
  var FollowUsStyled = styled(Text)(function (_a) {
39
35
  var theme = _a.theme;
@@ -43,54 +39,22 @@ var LanguageTextStyled = styled(Text)(function (_a) {
43
39
  var theme = _a.theme;
44
40
  return (__assign(__assign({}, theme.typography.caption), { paddingInlineStart: theme.spacing(0.625), cursor: 'pointer' }));
45
41
  });
46
- var IconsContainerStyled = styled(Text)(function (_a) {
42
+ var TextStyled = styled(Text)(function (_a) {
47
43
  var theme = _a.theme;
48
44
  return ({
49
- marginInlineStart: theme.spacing(1.25),
50
- marginInlineEnd: theme.spacing(1.25)
45
+ marginInline: theme.spacing(0.2)
51
46
  });
52
47
  });
53
- var LinkStyled = styled(Link)(function (_a) {
48
+ var IconStyled = styled(Icon)(function (_a) {
54
49
  var theme = _a.theme;
55
50
  return ({
56
- color: theme.palette.background.paper,
57
- verticalAlign: ''
58
- });
59
- });
60
- var InstagramIconStyled = styled(InstagramIcon)(function (_a) {
61
- var theme = _a.theme;
62
- return ({
63
- verticalAlign: 'middle',
64
- marginInlineEnd: theme.spacing(0.625)
65
- });
66
- });
67
- var FacebookIconStyled = styled(FacebookIcon)(function (_a) {
68
- var theme = _a.theme;
69
- return ({
70
- verticalAlign: 'middle',
71
- marginInlineEnd: theme.spacing(0.625)
72
- });
73
- });
74
- var LinkedInIconStyled = styled(LinkedInIcon)(function (_a) {
75
- var theme = _a.theme;
76
- return ({
77
- verticalAlign: 'middle',
78
- marginInlineEnd: theme.spacing(0.625)
79
- });
80
- });
81
- var TwitterIconStyled = styled(TwitterIcon)(function () { return ({
82
- verticalAlign: 'middle'
83
- }); });
84
- var YouTubeIconStyled = styled(YouTubeIcon)(function (_a) {
85
- var theme = _a.theme;
86
- return ({
87
- verticalAlign: 'middle',
88
- marginInlineEnd: theme.spacing(0.625)
51
+ marginInline: theme.spacing(0.5)
89
52
  });
90
53
  });
91
54
  var FooterComponent = function (_a) {
92
- var language = _a.language, onSwitchLanguage = _a.onSwitchLanguage, rest = __rest(_a, ["language", "onSwitchLanguage"]);
93
- return (_jsx(FooterStyled, __assign({}, rest, { children: _jsx(LanguageTextStyled, __assign({ onClick: onSwitchLanguage }, { children: language })) })));
55
+ var language = _a.language, countryName = _a.countryName, countryFlag = _a.countryFlag, onSwitchLanguage = _a.onSwitchLanguage, rest = __rest(_a, ["language", "countryName", "countryFlag", "onSwitchLanguage"]);
56
+ var isAr = useLanguage().isAr;
57
+ return (_jsxs(FooterStyled, __assign({}, rest, { children: [_jsx(IconStyled, { src: countryFlag }), _jsxs(TextStyled, { children: [" ", countryName, " "] }), _jsx(TextStyled, { children: " | " }), _jsxs(LanguageTextStyled, __assign({ onClick: onSwitchLanguage }, { children: [language, " "] }))] })));
94
58
  };
95
59
  FooterComponent.defaultProps = {
96
60
  followUsTitle: 'follow_us',
@@ -8,8 +8,7 @@ export declare const ENDPOINT_PATHS: {
8
8
  LEAD: string;
9
9
  LEAD_IDENTITY: string;
10
10
  LEAD_IDENTITY_VERIFY: string;
11
- RETRIEVE_CR: string;
12
- RETRIEVE_FL: string;
11
+ RETRIEVE_ENTITY_LIST: string;
13
12
  ENTITY: string;
14
13
  CHECK_EMAIL: string;
15
14
  CHECK_BRAND: string;
@@ -18,4 +17,5 @@ export declare const ENDPOINT_PATHS: {
18
17
  CHANNEL: string;
19
18
  CUSTOMER_BASES: string;
20
19
  SALES: string;
20
+ EXPECTED_CUSTOMERS: string;
21
21
  };
@@ -7,8 +7,7 @@ var AUTH_PATH = '/auth';
7
7
  var LEAD_PATH = '/lead';
8
8
  var LEAD_IDENTITY_PATH = '/lead/identity';
9
9
  var LEAD_IDENTITY_VERIFY_PATH = 'lead/identity/verify';
10
- var RETRIEVE_CR_PATH = '/lead/crlist';
11
- var RETRIEVE_FL_PATH = '/lead/fllist';
10
+ var RETRIEVE_ENTITY_LIST_PATH = '/lead/entity/list';
12
11
  var ENTITY_PATH = '/entity';
13
12
  var CHECK_EMAIL = '/lead/identity/emailcheck';
14
13
  var CHECK_BRAND = 'lead/profile/profile_name';
@@ -16,6 +15,7 @@ var CREATE_ACCOUNT_PATH = '/account/create';
16
15
  var CHANNEL_PATH = '/channel';
17
16
  var CUSTOMER_BASES_PATH = '/customerBases';
18
17
  var SALES_PATH = '/sales';
18
+ var EXPECTED_CUSTOMERS_PATH = '/expectedCustomers';
19
19
  var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/sandbox/local.json';
20
20
  export var ENDPOINT_PATHS = {
21
21
  BASE_URL: API_BASE_URL,
@@ -27,8 +27,7 @@ export var ENDPOINT_PATHS = {
27
27
  LEAD: LEAD_PATH,
28
28
  LEAD_IDENTITY: LEAD_IDENTITY_PATH,
29
29
  LEAD_IDENTITY_VERIFY: LEAD_IDENTITY_VERIFY_PATH,
30
- RETRIEVE_CR: RETRIEVE_CR_PATH,
31
- RETRIEVE_FL: RETRIEVE_FL_PATH,
30
+ RETRIEVE_ENTITY_LIST: RETRIEVE_ENTITY_LIST_PATH,
32
31
  ENTITY: ENTITY_PATH,
33
32
  CHECK_EMAIL: CHECK_EMAIL,
34
33
  CHECK_BRAND: CHECK_BRAND,
@@ -36,5 +35,6 @@ export var ENDPOINT_PATHS = {
36
35
  CREATE_ACCOUNT: CREATE_ACCOUNT_PATH,
37
36
  CHANNEL: CHANNEL_PATH,
38
37
  CUSTOMER_BASES: CUSTOMER_BASES_PATH,
39
- SALES: SALES_PATH
38
+ SALES: SALES_PATH,
39
+ EXPECTED_CUSTOMERS: EXPECTED_CUSTOMERS_PATH
40
40
  };
@@ -1,32 +1,10 @@
1
- export declare const OTHER_FL_LICENSE: {
2
- number: string;
3
- status: string;
4
- canceled_at: string;
5
- license_specialities: {
6
- speciality: {
7
- id: string;
8
- name: string;
9
- name_en: string;
10
- category: {
11
- id: string;
12
- name: string;
13
- name_en: string;
14
- };
15
- };
16
- }[];
17
- };
18
- export declare const OTHER_CR_LICENSE: {
19
- crName: string;
20
- crNumber: string;
21
- crEntityNumber: string;
22
- isMain: string;
23
- businessType: {
24
- id: number;
25
- name: string;
1
+ export declare const OTHER_LICENSE: {
2
+ legal_name: {
3
+ ar: string;
4
+ en: string;
26
5
  };
27
- relation: {
28
- id: number;
29
- name: string;
6
+ license: {
7
+ number: string;
30
8
  };
31
9
  };
32
10
  export declare const defaultCountry: {
@@ -266,18 +244,18 @@ export declare const SOCIAL_MEDIA_LINKS: {
266
244
  };
267
245
  export declare const CUSTOMER_LOCATIONS: {
268
246
  id: number;
269
- name: string;
270
- nameAR: string;
247
+ title: string;
248
+ titleAr: string;
271
249
  }[];
272
250
  export declare const EXPECTED_CUSTOMERS: {
273
251
  id: number;
274
- name: string;
275
- nameAR: string;
252
+ title: string;
253
+ titleAr: string;
276
254
  }[];
277
255
  export declare const EXPECTED_SALES_RANGE: {
278
256
  id: number;
279
- name: string;
280
- nameAR: string;
257
+ title: string;
258
+ titleAr: string;
281
259
  }[];
282
260
  export declare const FL_LIST: ({
283
261
  number: string;
@@ -333,8 +311,8 @@ export declare const ACTIVITIES: {
333
311
  }[];
334
312
  export declare const SALES_CHANNELS: {
335
313
  id: number;
336
- nameEn: string;
337
- name: string;
314
+ title: string;
315
+ titleAr: string;
338
316
  }[];
339
317
  export declare const SOURCE_OF_INCOME: {
340
318
  id: number;
@@ -1,34 +1,10 @@
1
- export var OTHER_FL_LICENSE = {
2
- number: 'other',
3
- status: 'other',
4
- canceled_at: '',
5
- license_specialities: [
6
- {
7
- speciality: {
8
- id: '',
9
- name: 'other',
10
- name_en: 'other',
11
- category: {
12
- id: '',
13
- name: 'other',
14
- name_en: 'other'
15
- }
16
- }
17
- }
18
- ]
19
- };
20
- export var OTHER_CR_LICENSE = {
21
- crName: 'other',
22
- crNumber: 'other',
23
- crEntityNumber: 'other',
24
- isMain: '',
25
- businessType: {
26
- id: 0,
27
- name: ''
28
- },
29
- relation: {
30
- id: 0,
31
- name: ''
1
+ export var OTHER_LICENSE = {
2
+ legal_name: {
3
+ ar: 'other',
4
+ en: 'other'
5
+ },
6
+ license: {
7
+ number: 'other'
32
8
  }
33
9
  };
34
10
  export var defaultCountry = {
@@ -6239,27 +6215,27 @@ export var SOCIAL_MEDIA_LINKS = {
6239
6215
  instagram: 'https://www.instagram.com/tappayments/'
6240
6216
  };
6241
6217
  export var CUSTOMER_LOCATIONS = [
6242
- { id: 1, name: 'Local', nameAR: 'محلي' },
6243
- { id: 2, name: 'Regional', nameAR: 'إقليمي' },
6244
- { id: 3, name: 'Global', nameAR: 'عالمي' }
6218
+ { id: 1, title: 'Local', titleAr: 'محلي' },
6219
+ { id: 2, title: 'Regional', titleAr: 'إقليمي' },
6220
+ { id: 3, title: 'Global', titleAr: 'عالمي' }
6245
6221
  ];
6246
6222
  export var EXPECTED_CUSTOMERS = [
6247
- { id: 1, name: '0 customers', nameAR: '0 عميل' },
6248
- { id: 2, name: '1,000 customers', nameAR: '1,000 عميل' },
6249
- { id: 3, name: '5,000 customers', nameAR: '5,000 عميل' },
6250
- { id: 4, name: '10,000 customers', nameAR: '10,000 عميل' },
6251
- { id: 5, name: '50,000 customers', nameAR: '50,000 عميل' },
6252
- { id: 6, name: '100,000 customers', nameAR: '100,000 عميل' },
6253
- { id: 7, name: 'more than 200,000 customers', nameAR: 'اكثر من 200,000 عميل' }
6223
+ { id: 1, title: '0 customers', titleAr: '0 عميل' },
6224
+ { id: 2, title: '1,000 customers', titleAr: '1,000 عميل' },
6225
+ { id: 3, title: '5,000 customers', titleAr: '5,000 عميل' },
6226
+ { id: 4, title: '10,000 customers', titleAr: '10,000 عميل' },
6227
+ { id: 5, title: '50,000 customers', titleAr: '50,000 عميل' },
6228
+ { id: 6, title: '100,000 customers', titleAr: '100,000 عميل' },
6229
+ { id: 7, title: 'more than 200,000 customers', titleAr: 'اكثر من 200,000 عميل' }
6254
6230
  ];
6255
6231
  export var EXPECTED_SALES_RANGE = [
6256
- { id: 1, name: '0-500,000', nameAR: '0 إلى 500 الف' },
6257
- { id: 2, name: '500,001-3M', nameAR: '500 ألف إلى 3 مليون' },
6258
- { id: 3, name: '3M – 6M', nameAR: '3 مليون إلى 6 مليون' },
6259
- { id: 4, name: '6M - 15M', nameAR: '6 مليون إلى 15 مليون' },
6260
- { id: 5, name: '15 M- 40M', nameAR: '15 مليون إلى 40 مليون' },
6261
- { id: 6, name: '40M – 200M', nameAR: '40 مليون إلى 200 مليون' },
6262
- { id: 7, name: 'higher than 200M', nameAR: ' اكثر من 200 مليون' }
6232
+ { id: 1, title: '0-500,000', titleAr: '0 إلى 500 الف' },
6233
+ { id: 2, title: '500,001-3M', titleAr: '500 ألف إلى 3 مليون' },
6234
+ { id: 3, title: '3M – 6M', titleAr: '3 مليون إلى 6 مليون' },
6235
+ { id: 4, title: '6M - 15M', titleAr: '6 مليون إلى 15 مليون' },
6236
+ { id: 5, title: '15 M- 40M', titleAr: '15 مليون إلى 40 مليون' },
6237
+ { id: 6, title: '40M – 200M', titleAr: '40 مليون إلى 200 مليون' },
6238
+ { id: 7, title: 'higher than 200M', titleAr: ' اكثر من 200 مليون' }
6263
6239
  ];
6264
6240
  export var FL_LIST = [
6265
6241
  {
@@ -6418,11 +6394,11 @@ export var ACTIVITIES = [
6418
6394
  }
6419
6395
  ];
6420
6396
  export var SALES_CHANNELS = [
6421
- { id: 1, nameEn: 'Website', name: 'موقع' },
6422
- { id: 2, nameEn: 'Mobile app', name: 'تطبيق' },
6423
- { id: 3, nameEn: 'Physical Store', name: 'متجر' },
6424
- { id: 4, nameEn: 'Social Media', name: 'مواقع تواصل اجتماعي' },
6425
- { id: 5, nameEn: 'Call Center', name: 'مركز اتصال' }
6397
+ { id: 1, title: 'Website', titleAr: 'موقع' },
6398
+ { id: 2, title: 'Mobile app', titleAr: 'تطبيق' },
6399
+ { id: 3, title: 'Physical Store', titleAr: 'متجر' },
6400
+ { id: 4, title: 'Social Media', titleAr: 'مواقع تواصل اجتماعي' },
6401
+ { id: 5, title: 'Call Center', titleAr: 'مركز اتصال' }
6426
6402
  ];
6427
6403
  export var SOURCE_OF_INCOME = [
6428
6404
  { id: 1, titleAr: 'راتب', title: 'Salary' },
@@ -1,5 +1,5 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { ActivitiesFormValues, BusinessInfoFormValues, CustomersFormValues, BusinessTypeFormValues, CountryCode, CRLicense, FLLicense, NIDFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
2
+ import { ActivitiesFormValues, BusinessInfoFormValues, CustomersFormValues, BusinessTypeFormValues, CountryCode, License, NIDFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const getCountries: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  businessCountry: undefined;
5
5
  countries: any;
@@ -27,10 +27,7 @@ export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
27
27
  }, NIDFormValues & {
28
28
  isResend: boolean;
29
29
  }, {}>;
30
- export declare const retrieveCRInfos: import("@reduxjs/toolkit").AsyncThunk<{
31
- data: any;
32
- }, void, {}>;
33
- export declare const retrieveFLInfos: import("@reduxjs/toolkit").AsyncThunk<{
30
+ export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<{
34
31
  data: any;
35
32
  }, void, {}>;
36
33
  export declare const updateLeadBusinessType: import("@reduxjs/toolkit").AsyncThunk<{
@@ -49,6 +46,11 @@ export declare const updateActivitiesInfo: import("@reduxjs/toolkit").AsyncThunk
49
46
  operationStartDate: string;
50
47
  };
51
48
  }, ActivitiesFormValues, {}>;
49
+ export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
50
+ customerBasesData: any;
51
+ expectedSalesData: any;
52
+ expectedCustomerSalesData: any;
53
+ }, void, {}>;
52
54
  export declare const updateCustomersInfo: import("@reduxjs/toolkit").AsyncThunk<{
53
55
  data: any;
54
56
  formData: {
@@ -77,8 +79,8 @@ export interface BusinessData {
77
79
  type: string;
78
80
  };
79
81
  businessTypeData: BusinessTypeFormValues & ResponseData;
80
- crInfos: Array<CRLicense>;
81
- flInfos: Array<FLLicense>;
82
+ crInfos: Array<License>;
83
+ flInfos: Array<License>;
82
84
  businessInfo: BusinessInfoFormValues & ResponseData;
83
85
  activitiesData: ActivitiesFormValues & ResponseData;
84
86
  customersData: CustomersFormValues & ResponseData;