@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.
- package/build/@types/app.d.ts +3 -3
- package/build/@types/form.d.ts +23 -3
- package/build/api/data.d.ts +1 -1
- package/build/api/data.js +2 -2
- package/build/api/entity.d.ts +5 -2
- package/build/api/index.d.ts +4 -4
- package/build/api/lead.d.ts +1 -1
- package/build/app/rootReducer.d.ts +4 -0
- package/build/app/rootReducer.js +9 -1
- package/build/app/store.d.ts +8 -0
- package/build/assets/locales/ar.json +2 -1
- package/build/assets/locales/en.json +3 -2
- package/build/components/AnimationFlow/AnimationFlow.d.ts +3 -1
- package/build/components/AnimationFlow/AnimationFlow.js +9 -1
- package/build/components/AnimationFlow/Error.d.ts +6 -0
- package/build/components/AnimationFlow/Error.js +32 -0
- package/build/components/AnimationFlow/Loader.d.ts +2 -0
- package/build/components/AnimationFlow/Loader.js +16 -0
- package/build/components/Loader/Loader.d.ts +1 -0
- package/build/components/Loader/Loader.js +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -0
- package/build/constants/app.d.ts +24 -0
- package/build/constants/app.js +61 -19
- package/build/constants/dummy.d.ts +2 -0
- package/build/constants/dummy.js +12 -6
- package/build/features/app/bank/bankStore.d.ts +36 -0
- package/build/features/app/bank/bankStore.js +218 -0
- package/build/features/app/business/businessStore.d.ts +2 -3
- package/build/features/app/business/businessStore.js +79 -85
- package/build/features/app/connect/connectStore.js +31 -30
- package/build/features/app/individual/individualStore.d.ts +36 -0
- package/build/features/app/individual/individualStore.js +222 -0
- package/build/features/app/password/passwordStore.d.ts +36 -0
- package/build/features/app/password/passwordStore.js +218 -0
- package/build/features/app/tax/taxStore.d.ts +38 -0
- package/build/features/app/tax/taxStore.js +271 -0
- package/build/features/bank/Bank.d.ts +2 -1
- package/build/features/bank/Bank.js +17 -7
- package/build/features/bank/screens/BankDetails/BankDetails.js +1 -2
- package/build/features/bank/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/bank/screens/Verify/OTPInput.js +42 -0
- package/build/features/bank/screens/Verify/Verify.d.ts +5 -0
- package/build/features/bank/screens/Verify/Verify.js +78 -0
- package/build/features/bank/screens/Verify/index.d.ts +2 -0
- package/build/features/bank/screens/Verify/index.js +2 -0
- package/build/features/bank/screens/Verify/validation.d.ts +8 -0
- package/build/features/bank/screens/Verify/validation.js +4 -0
- package/build/features/business/Business.js +2 -2
- package/build/features/business/screens/Activities/Activities.js +8 -8
- package/build/features/business/screens/Activities/ActivitiesList.js +7 -7
- package/build/features/business/screens/Activities/SalesChannels.js +1 -1
- package/build/features/business/screens/BusinessType/CRNumber.d.ts +2 -1
- package/build/features/business/screens/BusinessType/CRNumber.js +2 -2
- package/build/features/business/screens/BusinessType/CompanyLicense.js +2 -1
- package/build/features/business/screens/BusinessType/FLNumber.d.ts +2 -1
- package/build/features/business/screens/BusinessType/FLNumber.js +2 -2
- package/build/features/business/screens/BusinessType/FreelanceLicense.js +2 -1
- package/build/features/business/screens/Confirm/Confirm.js +1 -1
- package/build/features/business/screens/Customers/Customers.js +3 -3
- package/build/features/business/screens/Customers/ExpectedCustomers.js +3 -3
- package/build/features/connect/Connect.js +2 -2
- package/build/features/connect/screens/Merchant/BrandList.d.ts +0 -2
- package/build/features/connect/screens/Merchant/BrandList.js +16 -40
- package/build/features/connect/screens/Merchant/Merchant.js +42 -23
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +2 -1
- package/build/features/connect/screens/Merchant/SocialMedia.js +30 -3
- package/build/features/connect/screens/Merchant/validation.d.ts +6 -1
- package/build/features/connect/screens/Merchant/validation.js +67 -7
- package/build/features/connect/screens/Mobile/MobileNumber.js +1 -1
- package/build/features/featuresScreens.js +20 -10
- package/build/features/individual/Individual.d.ts +2 -1
- package/build/features/individual/Individual.js +17 -9
- package/build/features/individual/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/individual/screens/Verify/OTPInput.js +42 -0
- package/build/features/individual/screens/Verify/Verify.d.ts +5 -0
- package/build/features/individual/screens/Verify/Verify.js +78 -0
- package/build/features/individual/screens/Verify/index.d.ts +2 -0
- package/build/features/individual/screens/Verify/index.js +2 -0
- package/build/features/individual/screens/Verify/validation.d.ts +8 -0
- package/build/features/individual/screens/Verify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -1
- package/build/features/password/Password.js +17 -9
- package/build/features/password/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/password/screens/Verify/OTPInput.js +42 -0
- package/build/features/password/screens/Verify/Verify.d.ts +5 -0
- package/build/features/password/screens/Verify/Verify.js +78 -0
- package/build/features/password/screens/Verify/index.d.ts +2 -0
- package/build/features/password/screens/Verify/index.js +2 -0
- package/build/features/password/screens/Verify/validation.d.ts +8 -0
- package/build/features/password/screens/Verify/validation.js +4 -0
- package/build/features/tax/Tax.d.ts +2 -1
- package/build/features/tax/Tax.js +17 -9
- package/build/features/tax/screens/Success/Success.js +6 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -7
- package/build/features/tax/screens/Verify/OTPInput.d.ts +5 -0
- package/build/features/tax/screens/Verify/OTPInput.js +42 -0
- package/build/features/tax/screens/Verify/Verify.d.ts +5 -0
- package/build/features/tax/screens/Verify/Verify.js +78 -0
- package/build/features/tax/screens/Verify/index.d.ts +2 -0
- package/build/features/tax/screens/Verify/index.js +2 -0
- package/build/features/tax/screens/Verify/validation.d.ts +8 -0
- package/build/features/tax/screens/Verify/validation.js +4 -0
- package/build/hooks/useAppDispatch.d.ts +4 -0
- package/build/utils/string.js +0 -1
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -69,9 +69,8 @@ export interface License {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
export interface Activity {
|
|
72
|
-
|
|
73
|
-
|
|
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 {};
|
package/build/@types/form.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
+
};
|
package/build/api/data.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
-
|
|
19
|
+
getExpectedCustomerSales: getExpectedCustomerSales
|
|
20
20
|
};
|
|
21
21
|
export { dataService };
|
package/build/api/entity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
export declare type
|
|
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:
|
|
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 };
|
package/build/api/index.d.ts
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
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;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -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;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -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;
|
package/build/app/store.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -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": "
|
|
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,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,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
|
+
}
|
|
@@ -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({
|
|
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',
|
package/build/constants/app.d.ts
CHANGED
|
@@ -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";
|
package/build/constants/app.js
CHANGED
|
@@ -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: '
|
|
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: '
|
|
111
|
-
next: '
|
|
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:
|
|
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:
|
|
125
|
+
order: 4
|
|
126
126
|
}
|
|
127
127
|
];
|
|
128
128
|
export var PASSWORD_SCREENS_NAVIGATION = [
|
|
129
129
|
{
|
|
130
|
-
name: '
|
|
131
|
-
next: '
|
|
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:
|
|
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:
|
|
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:
|
|
165
|
+
order: 3
|
|
154
166
|
}
|
|
155
167
|
];
|
|
156
168
|
export var TAX_SCREENS_NAVIGATION = [
|
|
157
169
|
{
|
|
158
|
-
name: '
|
|
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:
|
|
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
|
}[];
|
package/build/constants/dummy.js
CHANGED
|
@@ -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;
|