@tap-payments/auth-jsconnect 1.0.51 → 1.0.54

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 (105) hide show
  1. package/build/@types/app.d.ts +3 -3
  2. package/build/@types/form.d.ts +23 -3
  3. package/build/api/data.d.ts +1 -1
  4. package/build/api/data.js +2 -2
  5. package/build/api/entity.d.ts +5 -2
  6. package/build/api/index.d.ts +4 -4
  7. package/build/api/lead.d.ts +1 -1
  8. package/build/app/rootReducer.d.ts +4 -0
  9. package/build/app/rootReducer.js +9 -1
  10. package/build/app/store.d.ts +8 -0
  11. package/build/assets/locales/ar.json +2 -1
  12. package/build/assets/locales/en.json +3 -2
  13. package/build/components/AnimationFlow/AnimationFlow.d.ts +3 -1
  14. package/build/components/AnimationFlow/AnimationFlow.js +9 -1
  15. package/build/components/AnimationFlow/Error.d.ts +6 -0
  16. package/build/components/AnimationFlow/Error.js +32 -0
  17. package/build/components/AnimationFlow/Loader.d.ts +2 -0
  18. package/build/components/AnimationFlow/Loader.js +16 -0
  19. package/build/components/Loader/Loader.d.ts +1 -0
  20. package/build/components/Loader/Loader.js +1 -1
  21. package/build/components/SimpleList/SimpleList.js +1 -0
  22. package/build/constants/app.d.ts +24 -0
  23. package/build/constants/app.js +61 -19
  24. package/build/constants/dummy.d.ts +2 -0
  25. package/build/constants/dummy.js +12 -6
  26. package/build/features/app/bank/bankStore.d.ts +36 -0
  27. package/build/features/app/bank/bankStore.js +218 -0
  28. package/build/features/app/business/businessStore.d.ts +2 -3
  29. package/build/features/app/business/businessStore.js +79 -85
  30. package/build/features/app/connect/connectStore.js +31 -30
  31. package/build/features/app/individual/individualStore.d.ts +36 -0
  32. package/build/features/app/individual/individualStore.js +222 -0
  33. package/build/features/app/password/passwordStore.d.ts +36 -0
  34. package/build/features/app/password/passwordStore.js +218 -0
  35. package/build/features/app/tax/taxStore.d.ts +38 -0
  36. package/build/features/app/tax/taxStore.js +271 -0
  37. package/build/features/bank/Bank.d.ts +2 -1
  38. package/build/features/bank/Bank.js +17 -7
  39. package/build/features/bank/screens/BankDetails/BankDetails.js +1 -2
  40. package/build/features/bank/screens/Verify/OTPInput.d.ts +5 -0
  41. package/build/features/bank/screens/Verify/OTPInput.js +42 -0
  42. package/build/features/bank/screens/Verify/Verify.d.ts +5 -0
  43. package/build/features/bank/screens/Verify/Verify.js +78 -0
  44. package/build/features/bank/screens/Verify/index.d.ts +2 -0
  45. package/build/features/bank/screens/Verify/index.js +2 -0
  46. package/build/features/bank/screens/Verify/validation.d.ts +8 -0
  47. package/build/features/bank/screens/Verify/validation.js +4 -0
  48. package/build/features/business/Business.js +2 -2
  49. package/build/features/business/screens/Activities/Activities.js +8 -8
  50. package/build/features/business/screens/Activities/ActivitiesList.js +7 -7
  51. package/build/features/business/screens/Activities/SalesChannels.js +1 -1
  52. package/build/features/business/screens/BusinessType/CRNumber.d.ts +2 -1
  53. package/build/features/business/screens/BusinessType/CRNumber.js +2 -2
  54. package/build/features/business/screens/BusinessType/CompanyLicense.js +2 -1
  55. package/build/features/business/screens/BusinessType/FLNumber.d.ts +2 -1
  56. package/build/features/business/screens/BusinessType/FLNumber.js +2 -2
  57. package/build/features/business/screens/BusinessType/FreelanceLicense.js +2 -1
  58. package/build/features/business/screens/Confirm/Confirm.js +1 -1
  59. package/build/features/business/screens/Customers/Customers.js +3 -3
  60. package/build/features/business/screens/Customers/ExpectedCustomers.js +3 -3
  61. package/build/features/connect/Connect.js +2 -2
  62. package/build/features/connect/screens/Merchant/BrandList.d.ts +0 -2
  63. package/build/features/connect/screens/Merchant/BrandList.js +16 -40
  64. package/build/features/connect/screens/Merchant/Merchant.js +42 -23
  65. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +2 -1
  66. package/build/features/connect/screens/Merchant/SocialMedia.js +30 -3
  67. package/build/features/connect/screens/Merchant/validation.d.ts +6 -1
  68. package/build/features/connect/screens/Merchant/validation.js +67 -7
  69. package/build/features/connect/screens/Mobile/MobileNumber.js +1 -1
  70. package/build/features/featuresScreens.js +20 -10
  71. package/build/features/individual/Individual.d.ts +2 -1
  72. package/build/features/individual/Individual.js +17 -9
  73. package/build/features/individual/screens/Verify/OTPInput.d.ts +5 -0
  74. package/build/features/individual/screens/Verify/OTPInput.js +42 -0
  75. package/build/features/individual/screens/Verify/Verify.d.ts +5 -0
  76. package/build/features/individual/screens/Verify/Verify.js +78 -0
  77. package/build/features/individual/screens/Verify/index.d.ts +2 -0
  78. package/build/features/individual/screens/Verify/index.js +2 -0
  79. package/build/features/individual/screens/Verify/validation.d.ts +8 -0
  80. package/build/features/individual/screens/Verify/validation.js +4 -0
  81. package/build/features/password/Password.d.ts +2 -1
  82. package/build/features/password/Password.js +17 -9
  83. package/build/features/password/screens/Verify/OTPInput.d.ts +5 -0
  84. package/build/features/password/screens/Verify/OTPInput.js +42 -0
  85. package/build/features/password/screens/Verify/Verify.d.ts +5 -0
  86. package/build/features/password/screens/Verify/Verify.js +78 -0
  87. package/build/features/password/screens/Verify/index.d.ts +2 -0
  88. package/build/features/password/screens/Verify/index.js +2 -0
  89. package/build/features/password/screens/Verify/validation.d.ts +8 -0
  90. package/build/features/password/screens/Verify/validation.js +4 -0
  91. package/build/features/tax/Tax.d.ts +2 -1
  92. package/build/features/tax/Tax.js +17 -9
  93. package/build/features/tax/screens/Success/Success.js +6 -0
  94. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -7
  95. package/build/features/tax/screens/Verify/OTPInput.d.ts +5 -0
  96. package/build/features/tax/screens/Verify/OTPInput.js +42 -0
  97. package/build/features/tax/screens/Verify/Verify.d.ts +5 -0
  98. package/build/features/tax/screens/Verify/Verify.js +78 -0
  99. package/build/features/tax/screens/Verify/index.d.ts +2 -0
  100. package/build/features/tax/screens/Verify/index.js +2 -0
  101. package/build/features/tax/screens/Verify/validation.d.ts +8 -0
  102. package/build/features/tax/screens/Verify/validation.js +4 -0
  103. package/build/hooks/useAppDispatch.d.ts +4 -0
  104. package/build/utils/string.js +0 -1
  105. package/package.json +1 -1
@@ -69,9 +69,8 @@ export interface License {
69
69
  };
70
70
  }
71
71
  export interface Activity {
72
- id: number;
73
- name: string;
74
- nameEn: string;
72
+ ar: string;
73
+ en: string;
75
74
  }
76
75
  export interface SalesChannel {
77
76
  id: number;
@@ -159,5 +158,6 @@ export declare type BrandInfo = {
159
158
  ar: string;
160
159
  en: string;
161
160
  };
161
+ website: string;
162
162
  };
163
163
  export {};
@@ -1,4 +1,4 @@
1
- import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, SalesChannel } from './app';
1
+ import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, SalesChannel, SourceOfIncome } from './app';
2
2
  export declare type MobileFormValues = {
3
3
  mobile: string | null;
4
4
  countryCode: CountryCode;
@@ -27,7 +27,7 @@ export declare type BrandFormValues = {
27
27
  instagram: string;
28
28
  };
29
29
  termAndConditionChecked: boolean;
30
- brandList?: Array<BrandInfo>;
30
+ selectedBrandItem: BrandInfo;
31
31
  };
32
32
  export declare type BusinessTypeFormValues = {
33
33
  businessType: string;
@@ -46,8 +46,28 @@ export declare type ActivitiesFormValues = {
46
46
  };
47
47
  export declare type CustomersFormValues = {
48
48
  customerLocations: Array<CustomerLocation>;
49
- expectedCustomers: ExpectedCustomer | undefined;
49
+ expectedCustomer: ExpectedCustomer | undefined;
50
50
  expectedSalesRange: ExpectedSaleRange | undefined;
51
51
  refundPolicy: boolean;
52
52
  transactionPolicy: boolean;
53
53
  };
54
+ export declare type BankFormValues = {
55
+ iban: string;
56
+ beneficiaryName: string;
57
+ bankName: string;
58
+ };
59
+ export declare type TaxFormValues = {
60
+ vatId: string;
61
+ };
62
+ export declare type IndividualExtraFormValues = {
63
+ sourceIncome: SourceOfIncome;
64
+ monthlyIncome: string;
65
+ employerName: string;
66
+ employerLocation: CountryCode;
67
+ isPEP: boolean | null;
68
+ isInfluencer: boolean | null;
69
+ };
70
+ export declare type PasswordCreateFormValues = {
71
+ password: string;
72
+ confirmPassword: string;
73
+ };
@@ -2,6 +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
+ getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
6
6
  };
7
7
  export { dataService };
package/build/api/data.js CHANGED
@@ -9,13 +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 () {
12
+ var getExpectedCustomerSales = function () {
13
13
  return instance.get("".concat(ENDPOINT_PATHS.EXPECTED_CUSTOMERS));
14
14
  };
15
15
  var dataService = {
16
16
  getChannelsOfServices: getChannelsOfServices,
17
17
  getCustomerBases: getCustomerBases,
18
18
  getExpectedSales: getExpectedSales,
19
- getExpectedCutomerSales: getExpectedCutomerSales
19
+ getExpectedCustomerSales: getExpectedCustomerSales
20
20
  };
21
21
  export { dataService };
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export declare type EntityInfoUpdateBody = {
2
+ export declare type EntityInfoCreateBody = {
3
3
  activities?: Array<string>;
4
4
  business_operation_start_at?: string;
5
5
  channel_services?: Array<string>;
@@ -13,8 +13,11 @@ export declare type EntityInfoUpdateBody = {
13
13
  step_name: string;
14
14
  encryption_contract?: Array<string>;
15
15
  };
16
+ export interface EntityInfoUpdateBody extends EntityInfoCreateBody {
17
+ id: string;
18
+ }
16
19
  declare const entityService: {
17
- createEntityInfo: (data: EntityInfoUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
20
+ createEntityInfo: (data: EntityInfoCreateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
18
21
  updateEntityInfo: (data: EntityInfoUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
19
22
  };
20
23
  export { entityService };
@@ -3,7 +3,7 @@ import { ValidateOperatorBody } from './operator';
3
3
  import { CreateAuthBody, VerifyAuthBody } from './auth';
4
4
  import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
5
5
  import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
- import { EntityInfoUpdateBody } from './entity';
6
+ import { EntityInfoUpdateBody, EntityInfoCreateBody } from './entity';
7
7
  import { CreateAccountBody } from './account';
8
8
  declare const API: {
9
9
  ipService: {
@@ -30,7 +30,7 @@ declare const API: {
30
30
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
31
31
  };
32
32
  entityService: {
33
- createEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
33
+ createEntityInfo: (data: EntityInfoCreateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
34
34
  updateEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
35
35
  };
36
36
  availabilityServices: {
@@ -47,9 +47,9 @@ declare const API: {
47
47
  getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
48
48
  getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
49
49
  getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
50
- getExpectedCutomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
50
+ getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
51
51
  };
52
52
  };
53
- export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoUpdateBody, CreateAccountBody };
53
+ export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoCreateBody, EntityInfoUpdateBody, CreateAccountBody };
54
54
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
55
55
  export default API;
@@ -35,7 +35,7 @@ declare type BrandInfo = {
35
35
  };
36
36
  export declare type UpdateLeadBody = {
37
37
  step_name?: string;
38
- lead_id: string;
38
+ id: string;
39
39
  encryption_contract?: Array<string>;
40
40
  name?: Name;
41
41
  contact?: Contact;
@@ -2,5 +2,9 @@ declare const rootReducer: {
2
2
  settings: import("redux").Reducer<import("./settings").SettingsState, import("redux").AnyAction>;
3
3
  connect: import("redux").Reducer<import("../features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
4
4
  business: import("redux").Reducer<import("../features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
5
+ bank: import("redux").Reducer<import("../features/app/bank/bankStore").BankState, import("redux").AnyAction>;
6
+ tax: import("redux").Reducer<import("../features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
7
+ individual: import("redux").Reducer<import("../features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
8
+ password: import("redux").Reducer<import("../features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
5
9
  };
6
10
  export default rootReducer;
@@ -1,9 +1,17 @@
1
1
  import settings from './settings';
2
2
  import connect from '../features/app/connect/connectStore';
3
3
  import business from '../features/app/business/businessStore';
4
+ import bank from '../features/app/bank/bankStore';
5
+ import tax from '../features/app/tax/taxStore';
6
+ import individual from '../features/app/individual/individualStore';
7
+ import password from '../features/app/password/passwordStore';
4
8
  var rootReducer = {
5
9
  settings: settings,
6
10
  connect: connect,
7
- business: business
11
+ business: business,
12
+ bank: bank,
13
+ tax: tax,
14
+ individual: individual,
15
+ password: password
8
16
  };
9
17
  export default rootReducer;
@@ -3,10 +3,18 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
3
3
  settings: import("./settings").SettingsState;
4
4
  connect: import("../features/app/connect/connectStore").ConnectState;
5
5
  business: import("../features/app/business/businessStore").BusinessState;
6
+ bank: import("../features/app/bank/bankStore").BankState;
7
+ tax: import("../features/app/tax/taxStore").TaxState;
8
+ individual: import("../features/app/individual/individualStore").IndividualState;
9
+ password: import("../features/app/password/passwordStore").PasswordState;
6
10
  }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
7
11
  settings: import("./settings").SettingsState;
8
12
  connect: import("../features/app/connect/connectStore").ConnectState;
9
13
  business: import("../features/app/business/businessStore").BusinessState;
14
+ bank: import("../features/app/bank/bankStore").BankState;
15
+ tax: import("../features/app/tax/taxStore").TaxState;
16
+ individual: import("../features/app/individual/individualStore").IndividualState;
17
+ password: import("../features/app/password/passwordStore").PasswordState;
10
18
  }, import("redux").AnyAction, undefined>]>>;
11
19
  export declare type AppDispatch = typeof store.dispatch;
12
20
  export declare type RootState = ReturnType<typeof store.getState>;
@@ -213,5 +213,6 @@
213
213
  "open_mail_box": "افتح البريد الإلكتروني",
214
214
  "mobile_button_label": "المتابعة عن طريق رقم الجوال",
215
215
  "select_brand_label": "Brand List",
216
- "choose_brand": "Choose Brand"
216
+ "choose_brand": "Choose Brand",
217
+ "confirm_enter_iban": "الايبان"
217
218
  }
@@ -59,7 +59,7 @@
59
59
  "email_not_valid": "May you please verify the entered email address.",
60
60
  "enter_at_least_one": "May you please enter at least one social media",
61
61
  "enter_bank_name": "Bank name",
62
- "enter_bank_name_placeholder": "- Please select -",
62
+ "enter_bank_name_placeholder": "bank name",
63
63
  "enter_birth_date": "Date of Birth",
64
64
  "enter_brand_name_english_chars_only": "Please write English letters only. with no spaces",
65
65
  "enter_commercial_register_no": "Commercial registration",
@@ -227,5 +227,6 @@
227
227
  "next": "next",
228
228
  "open_mail_box": "Open Mailbox",
229
229
  "select_brand_label": "Brand List",
230
- "choose_brand": "Choose Brand"
230
+ "choose_brand": "Choose Brand",
231
+ "confirm_enter_iban": "IBAN"
231
232
  }
@@ -5,5 +5,7 @@ export interface AnimationFlowProps {
5
5
  footer?: React.ReactNode;
6
6
  type?: 'PUPOP' | 'BOTTOMSHEET';
7
7
  breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
8
+ loading?: boolean;
9
+ error?: string | null;
8
10
  }
9
- export default function AnimationFlow({ open, children, breakpoint, type, footer }: AnimationFlowProps): JSX.Element;
11
+ export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error }: AnimationFlowProps): JSX.Element;
@@ -14,10 +14,18 @@ import { useTheme } from '@mui/material/styles';
14
14
  import useMediaQuery from '@mui/material/useMediaQuery';
15
15
  import Dialog from './Dialog';
16
16
  import BottomSheet from './BottomSheet';
17
+ import Loader from './Loader';
18
+ import Error from './Error';
17
19
  export default function AnimationFlow(_a) {
18
- var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer;
20
+ var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error;
19
21
  var theme = useTheme();
20
22
  var matches = useMediaQuery(theme.breakpoints.down(breakpoint || 'sm'));
23
+ if (loading) {
24
+ return _jsx(Loader, {});
25
+ }
26
+ if (error) {
27
+ return _jsx(Error, { error: error });
28
+ }
21
29
  if (type === 'PUPOP') {
22
30
  return (_jsx(Dialog, __assign({ footer: footer, open: open }, { children: children })));
23
31
  }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ error: string;
4
+ }
5
+ export default function Error({ error }: Props): JSX.Element;
6
+ export {};
@@ -0,0 +1,32 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { styled } from '@mui/material/styles';
14
+ import Box from '@mui/material/Box';
15
+ import Text from '../Text';
16
+ var BoxStyled = styled(Box)(function () { return ({
17
+ width: '100%',
18
+ height: '100%',
19
+ display: 'flex',
20
+ justifyContent: 'center',
21
+ alignItems: 'center',
22
+ backgroundColor: 'rgba(0,0,0,0.5)',
23
+ zIndex: 2
24
+ }); });
25
+ export default function Error(_a) {
26
+ var error = _a.error;
27
+ return (_jsx(BoxStyled, { children: _jsx(Text, __assign({ sx: {
28
+ fontSize: '17px',
29
+ color: '#fff',
30
+ textAlign: 'center'
31
+ } }, { children: error })) }));
32
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function FlowLoading(): JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { styled } from '@mui/material/styles';
3
+ import Box from '@mui/material/Box';
4
+ import Loader from '../Loader';
5
+ var BoxStyled = styled(Box)(function () { return ({
6
+ width: '100%',
7
+ height: '100%',
8
+ display: 'flex',
9
+ justifyContent: 'center',
10
+ alignItems: 'center',
11
+ backgroundColor: 'rgba(0,0,0,0.5)',
12
+ zIndex: 2
13
+ }); });
14
+ export default function FlowLoading() {
15
+ return (_jsx(BoxStyled, { children: _jsx(Loader, { svgStyle: { width: 60, height: 60 }, innerColor: '#000', outerColor: '#000', toggleAnimation: true }) }));
16
+ }
@@ -6,6 +6,7 @@ export interface LoaderProps {
6
6
  toggleAnimation?: boolean;
7
7
  size?: number;
8
8
  style?: React.CSSProperties;
9
+ svgStyle?: React.CSSProperties;
9
10
  className?: string;
10
11
  }
11
12
  declare function Loader(props: LoaderProps): JSX.Element;
@@ -28,7 +28,7 @@ var LoaderBoxStyled = styled('svg')(function (_a) {
28
28
  return (__assign({ height: '100%', transformOrigin: 'center center', width: '100%', position: 'absolute', top: 0, left: 0, margin: 'auto' }, (size && { transform: "scale(".concat(size / 40.0, ")") })));
29
29
  });
30
30
  function Loader(props) {
31
- return (_jsx(RootStyled, __assign({ className: 'loader', style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ className: 'circular-loader', viewBox: '25 25 50 50' }, { children: [_jsx("circle", __assign({ cx: '50', cy: '50', r: '20', fill: 'none', stroke: props.outerColor || 'black', strokeWidth: '3.6px', strokeLinecap: 'round', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ cx: '50', cy: '50', r: '14', fill: 'none', stroke: props.innerColor || 'black', strokeWidth: ' 3.6px', strokeLinecap: 'round', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
31
+ return (_jsx(RootStyled, __assign({ className: 'loader', style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ viewBox: '25 25 50 50', style: props.svgStyle }, { children: [_jsx("circle", __assign({ cx: '50', cy: '50', r: '20', fill: 'none', stroke: props.outerColor || 'black', strokeWidth: '3.6px', strokeLinecap: 'round', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ cx: '50', cy: '50', r: '14', fill: 'none', stroke: props.innerColor || 'black', strokeWidth: ' 3.6px', strokeLinecap: 'round', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
32
32
  }
33
33
  Loader.defaultProps = {
34
34
  outerColor: '#423e3c',
@@ -34,6 +34,7 @@ var ListStyled = styled(List)(function (_a) {
34
34
  return (_b = {
35
35
  overflowY: 'auto',
36
36
  listStyle: 'none',
37
+ display: 'unset',
37
38
  paddingTop: theme.spacing(2.125),
38
39
  height: theme.spacing(40)
39
40
  },
@@ -89,6 +89,30 @@ export declare const BUSINESS_STEP_NAMES: {
89
89
  BUSINESS_CUSTOMERS: string;
90
90
  BUSINESS_SUCCESS: string;
91
91
  };
92
+ export declare const BANK_STEP_NAMES: {
93
+ PHONE_AUTH: string;
94
+ IDENTITY_AUTH: string;
95
+ BANK_INFO: string;
96
+ BANK_SUCCESS: string;
97
+ };
98
+ export declare const TAX_STEP_NAMES: {
99
+ PHONE_AUTH: string;
100
+ IDENTITY_AUTH: string;
101
+ TAX_INFO: string;
102
+ TAX_SUCCESS: string;
103
+ };
104
+ export declare const INDIVIDUAl_STEP_NAMES: {
105
+ PHONE_AUTH: string;
106
+ IDENTITY_AUTH: string;
107
+ INDIVIDUAl_INFO: string;
108
+ INDIVIDUAl_SUCCESS: string;
109
+ };
110
+ export declare const PASSWORD_STEP_NAMES: {
111
+ PHONE_AUTH: string;
112
+ IDENTITY_AUTH: string;
113
+ PASSWORD_CREATE: string;
114
+ PASSWORD_SUCCESS: string;
115
+ };
92
116
  export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
93
117
  export declare const ENCRYPTION_FLAG = "encryption_contract";
94
118
  export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
@@ -36,12 +36,6 @@ export var CONNECT_SCREENS_NAVIGATION = [
36
36
  prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP'],
37
37
  order: 3
38
38
  },
39
- {
40
- name: 'CONNECT_PASSWORD_STEP',
41
- next: 'CONNECT_MERCHANT_INFO_STEP',
42
- prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP'],
43
- order: 3
44
- },
45
39
  {
46
40
  name: 'CONNECT_MERCHANT_INFO_STEP',
47
41
  next: 'CONNECT_THANK_YOU_STEP',
@@ -76,7 +70,7 @@ export var BUSINESS_SCREENS_NAVIGATION = [
76
70
  },
77
71
  {
78
72
  name: 'BUSINESS_BUSINESS_TYPE_STEP',
79
- next: 'BUSINESS_CONFIRM_STEP',
73
+ next: 'BUSINESS_ACTIVITIES_STEP',
80
74
  prev: 'BUSINESS_IDBOD_STEP',
81
75
  order: 2
82
76
  },
@@ -107,64 +101,88 @@ export var BUSINESS_SCREENS_NAVIGATION = [
107
101
  ];
108
102
  export var INDIVIDUAL_SCREENS_NAVIGATION = [
109
103
  {
110
- name: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
111
- next: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
104
+ name: 'INDIVIDUAL_VERIFY_STEP',
105
+ next: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
112
106
  prev: '',
113
107
  order: 1
114
108
  },
109
+ {
110
+ name: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
111
+ next: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
112
+ prev: 'INDIVIDUAL_VERIFY_STEP',
113
+ order: 2
114
+ },
115
115
  {
116
116
  name: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
117
117
  next: 'INDIVIDUAL_SUCCESS_STEP',
118
118
  prev: 'INDIVIDUAL_SHOW_INDIVIDUAL_INFO_STEP',
119
- order: 2
119
+ order: 3
120
120
  },
121
121
  {
122
122
  name: 'INDIVIDUAL_SUCCESS_STEP',
123
123
  next: '',
124
124
  prev: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
125
- order: 2
125
+ order: 4
126
126
  }
127
127
  ];
128
128
  export var PASSWORD_SCREENS_NAVIGATION = [
129
129
  {
130
- name: 'PASSWORD_CREATE_PASSWORD_STEP',
131
- next: 'PASSWORD_SUCCESS_STEP',
130
+ name: 'PASSWORD_VERIFY_STEP',
131
+ next: 'PASSWORD_CREATE_PASSWORD_STEP',
132
132
  prev: '',
133
133
  order: 1
134
134
  },
135
+ {
136
+ name: 'PASSWORD_CREATE_PASSWORD_STEP',
137
+ next: 'PASSWORD_SUCCESS_STEP',
138
+ prev: 'PASSWORD_VERIFY_STEP',
139
+ order: 2
140
+ },
135
141
  {
136
142
  name: 'PASSWORD_SUCCESS_STEP',
137
143
  next: '',
138
144
  prev: 'PASSWORD_CREATE_PASSWORD_STEP',
139
- order: 2
145
+ order: 3
140
146
  }
141
147
  ];
142
148
  export var BANK_SCREENS_NAVIGATION = [
149
+ {
150
+ name: 'BANK_VERIFY_STEP',
151
+ next: 'BANK_BANK_DETAILS_STEP',
152
+ prev: '',
153
+ order: 1
154
+ },
143
155
  {
144
156
  name: 'BANK_BANK_DETAILS_STEP',
145
157
  next: 'BANK_DETAILS_SUCCESS_STEP',
146
158
  prev: '',
147
- order: 1
159
+ order: 2
148
160
  },
149
161
  {
150
162
  name: 'BANK_DETAILS_SUCCESS_STEP',
151
163
  next: '',
152
164
  prev: 'BANK_BANK_DETAILS_STEP',
153
- order: 2
165
+ order: 3
154
166
  }
155
167
  ];
156
168
  export var TAX_SCREENS_NAVIGATION = [
157
169
  {
158
- name: 'TAX_TAX_DETAILS_STEP',
159
- next: 'TAX_DETAILS_SUCCESS_STEP',
170
+ name: 'TAX_VERIFY_STEP',
171
+ next: ['TAX_TAX_DETAILS_STEP', 'TAX_DETAILS_SUCCESS_STEP'],
160
172
  prev: '',
161
173
  order: 1
162
174
  },
175
+ {
176
+ name: 'TAX_TAX_DETAILS_STEP',
177
+ next: 'TAX_DETAILS_SUCCESS_STEP',
178
+ prev: 'TAX_VERIFY_STEP',
179
+ order: 2
180
+ },
163
181
  {
164
182
  name: 'TAX_DETAILS_SUCCESS_STEP',
165
183
  next: '',
166
184
  prev: 'TAX_TAX_DETAILS_STEP',
167
- order: 2
185
+ order: 3
168
186
  }
169
187
  ];
170
188
  export var DefaultDeviceInfo = {
@@ -238,6 +256,30 @@ export var BUSINESS_STEP_NAMES = {
238
256
  BUSINESS_CUSTOMERS: 'business_customers',
239
257
  BUSINESS_SUCCESS: 'business_completed'
240
258
  };
259
+ export var BANK_STEP_NAMES = {
260
+ PHONE_AUTH: 'bank_phone_auth',
261
+ IDENTITY_AUTH: 'bank_identity_auth',
262
+ BANK_INFO: 'bank_info',
263
+ BANK_SUCCESS: 'bank_completed'
264
+ };
265
+ export var TAX_STEP_NAMES = {
266
+ PHONE_AUTH: 'tax_phone_auth',
267
+ IDENTITY_AUTH: 'tax_identity_auth',
268
+ TAX_INFO: 'tax_info',
269
+ TAX_SUCCESS: 'tax_completed'
270
+ };
271
+ export var INDIVIDUAl_STEP_NAMES = {
272
+ PHONE_AUTH: 'individual_phone_auth',
273
+ IDENTITY_AUTH: 'individual_identity_auth',
274
+ INDIVIDUAl_INFO: 'individual_info',
275
+ INDIVIDUAl_SUCCESS: 'individual_completed'
276
+ };
277
+ export var PASSWORD_STEP_NAMES = {
278
+ PHONE_AUTH: 'password_phone_auth',
279
+ IDENTITY_AUTH: 'password_identity_auth',
280
+ PASSWORD_CREATE: 'password_create',
281
+ PASSWORD_SUCCESS: 'password_completed'
282
+ };
241
283
  export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
242
284
  export var ENCRYPTION_FLAG = 'encryption_contract';
243
285
  export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
@@ -13,6 +13,7 @@ export declare const OTHER_BRAND: {
13
13
  ar: string;
14
14
  en: string;
15
15
  };
16
+ website: string;
16
17
  };
17
18
  export declare const defaultCountry: {
18
19
  created: number;
@@ -332,4 +333,5 @@ export declare const BRAND_LIST: {
332
333
  ar: string;
333
334
  en: string;
334
335
  };
336
+ website: string;
335
337
  }[];
@@ -12,7 +12,8 @@ export var OTHER_BRAND = {
12
12
  name: {
13
13
  ar: 'other',
14
14
  en: 'other'
15
- }
15
+ },
16
+ website: 'other.com'
16
17
  };
17
18
  export var defaultCountry = {
18
19
  created: 1577690965000,
@@ -6418,22 +6419,27 @@ export var SOURCE_OF_INCOME = [
6418
6419
  export var BRAND_LIST = [
6419
6420
  {
6420
6421
  id: '477222',
6421
- name: { ar: 'brand test user1', en: 'brand test user1' }
6422
+ name: { ar: 'brand test user1', en: 'brand test user1' },
6423
+ website: 'test1.com'
6422
6424
  },
6423
6425
  {
6424
6426
  id: '477223',
6425
- name: { ar: 'brand test user2', en: 'brand test user2' }
6427
+ name: { ar: 'brand test user2', en: 'brand test user2' },
6428
+ website: 'www.test2.com'
6426
6429
  },
6427
6430
  {
6428
6431
  id: '477224',
6429
- name: { ar: 'brand test user3', en: 'brand test user' }
6432
+ name: { ar: 'brand test user3', en: 'brand test user' },
6433
+ website: 'www.test3.com'
6430
6434
  },
6431
6435
  {
6432
6436
  id: '477225',
6433
- name: { ar: 'brand test user4', en: 'brand test user4' }
6437
+ name: { ar: 'brand test user4', en: 'brand test user4' },
6438
+ website: 'www.test4.com'
6434
6439
  },
6435
6440
  {
6436
6441
  id: '477226',
6437
- name: { ar: 'brand test user5', en: 'brand test user5' }
6442
+ name: { ar: 'brand test user5', en: 'brand test user5' },
6443
+ website: 'www.test5.com'
6438
6444
  }
6439
6445
  ];
@@ -0,0 +1,36 @@
1
+ import { RootState } from '../../../app/store';
2
+ import { BankFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
+ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
+ data: any;
5
+ leadData: any;
6
+ token: string;
7
+ }, string, {}>;
8
+ export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
9
+ data: any;
10
+ formData: {
11
+ otp: string;
12
+ };
13
+ }, OTPFormValues, {}>;
14
+ export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
15
+ response: any;
16
+ formData: void;
17
+ }, void, {}>;
18
+ declare type VerifyData = {
19
+ token: string;
20
+ };
21
+ export interface BankData {
22
+ verify: ResponseData & VerifyData;
23
+ otpData: OTPFormValues & ResponseData;
24
+ bankData: BankFormValues & ResponseData;
25
+ }
26
+ export interface BankState extends SharedState<BankData> {
27
+ }
28
+ export declare const bankSlice: import("@reduxjs/toolkit").Slice<BankState, {
29
+ clearError: (state: BankState) => void;
30
+ stopLoader: (state: BankState) => void;
31
+ resetOTPScreen: (state: BankState) => void;
32
+ }, "bank/store">;
33
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
34
+ declare const _default: import("redux").Reducer<BankState, import("redux").AnyAction>;
35
+ export default _default;
36
+ export declare const bankSelector: (state: RootState) => BankState;