@tap-payments/auth-jsconnect 2.12.9-development → 2.12.9-sandbox
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 +2 -0
- package/build/@types/app.js +1 -0
- package/build/@types/form.d.ts +1 -0
- package/build/api/document.d.ts +1 -1
- package/build/api/file.d.ts +1 -0
- package/build/api/file.js +9 -1
- package/build/api/index.d.ts +1 -0
- package/build/assets/locales/ar.json +13 -10
- package/build/assets/locales/en.json +8 -6
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/app.d.ts +3 -0
- package/build/constants/app.js +15 -6
- package/build/features/app/connectExpress/connectExpressStore.d.ts +11 -1
- package/build/features/app/connectExpress/connectExpressStore.js +199 -18
- package/build/features/app/entity/entityStore.js +56 -35
- package/build/features/app/individual/individualStore.js +1 -0
- package/build/features/app/terminal/terminalStore.d.ts +3 -0
- package/build/features/app/terminal/terminalStore.js +34 -1
- package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
- package/build/features/connectExpress/ConnectExpress.js +6 -3
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +5 -2
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +10 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +3 -2
- package/build/features/connectExpress/screens/Email/Email.d.ts +5 -0
- package/build/features/connectExpress/screens/Email/Email.js +57 -0
- package/build/features/connectExpress/screens/Email/EmailField.d.ts +8 -0
- package/build/features/connectExpress/screens/Email/EmailField.js +52 -0
- package/build/features/connectExpress/screens/Email/index.d.ts +3 -0
- package/build/features/connectExpress/screens/Email/index.js +2 -0
- package/build/features/connectExpress/screens/Email/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/Email/validation.js +4 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.js +4 -2
- package/build/features/connectExpress/screens/OTP/OTP.js +15 -9
- package/build/features/connectExpress/screens/OTP/OTPInput.js +10 -4
- package/build/features/entity/screens/EntityName/EntityDocumentUpload.d.ts +12 -0
- package/build/features/entity/screens/EntityName/{LicenseCertificate.js → EntityDocumentUpload.js} +10 -15
- package/build/features/entity/screens/EntityName/EntityName.js +10 -4
- package/build/features/entity/screens/EntityName/validation.d.ts +9 -0
- package/build/features/entity/screens/EntityName/validation.js +3 -0
- package/build/features/featuresScreens.js +5 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +2 -1
- package/build/features/terminal/screens/shared/POSDeviceList.js +5 -5
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useCountry.d.ts +1 -0
- package/build/hooks/useCountry.js +3 -2
- package/build/hooks/useIsEmailAuth.d.ts +1 -0
- package/build/hooks/useIsEmailAuth.js +11 -0
- package/build/utils/array.d.ts +1 -1
- package/build/utils/array.js +3 -2
- package/build/utils/common.js +3 -3
- package/build/utils/file.d.ts +1 -0
- package/build/utils/file.js +6 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/string.d.ts +2 -0
- package/build/utils/string.js +8 -0
- package/package.json +2 -2
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +0 -9
package/build/@types/app.d.ts
CHANGED
|
@@ -236,6 +236,7 @@ export interface LibConfig extends LibCallbacks {
|
|
|
236
236
|
closeButton?: boolean;
|
|
237
237
|
disableNafath?: boolean;
|
|
238
238
|
disablePaci?: boolean;
|
|
239
|
+
emailAuth?: boolean;
|
|
239
240
|
dialogStartTransition?: 'left' | 'right' | 'up' | 'down';
|
|
240
241
|
dialogEndTransition?: 'left' | 'right' | 'up' | 'down';
|
|
241
242
|
};
|
|
@@ -420,6 +421,7 @@ export declare enum IndividualType {
|
|
|
420
421
|
}
|
|
421
422
|
export declare enum DocumentPurpose {
|
|
422
423
|
CR = "commercial_registration",
|
|
424
|
+
COMMERCIAL_REGISTRATION_EXTRACT = "commercial_registration_extract",
|
|
423
425
|
ARTICLE_ASSOCIATION = "article_of_association",
|
|
424
426
|
BANK_STATEMENT = "bank_statement",
|
|
425
427
|
BANK_CERTIFICATE = "bank_certificate",
|
package/build/@types/app.js
CHANGED
|
@@ -92,6 +92,7 @@ export var IndividualType;
|
|
|
92
92
|
export var DocumentPurpose;
|
|
93
93
|
(function (DocumentPurpose) {
|
|
94
94
|
DocumentPurpose["CR"] = "commercial_registration";
|
|
95
|
+
DocumentPurpose["COMMERCIAL_REGISTRATION_EXTRACT"] = "commercial_registration_extract";
|
|
95
96
|
DocumentPurpose["ARTICLE_ASSOCIATION"] = "article_of_association";
|
|
96
97
|
DocumentPurpose["BANK_STATEMENT"] = "bank_statement";
|
|
97
98
|
DocumentPurpose["BANK_CERTIFICATE"] = "bank_certificate";
|
package/build/@types/form.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ export declare type EntityNameFormValues = {
|
|
|
140
140
|
expiryDate: string;
|
|
141
141
|
unifiedNumber: string;
|
|
142
142
|
certificateId?: Array<string>;
|
|
143
|
+
commercialRegistrationExtractId?: Array<string>;
|
|
143
144
|
articleId?: string;
|
|
144
145
|
};
|
|
145
146
|
export declare type EntityCapitalFormValues = {
|
package/build/api/document.d.ts
CHANGED
package/build/api/file.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ declare const fileService: {
|
|
|
10
10
|
uploadFile: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
11
|
uploadFileInfo: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<any>;
|
|
12
12
|
downloadFile: (id: string, name: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
13
|
+
retrieveFileInfo: (fileId: string) => Promise<any>;
|
|
13
14
|
};
|
|
14
15
|
export { fileService };
|
package/build/api/file.js
CHANGED
|
@@ -29,9 +29,17 @@ var downloadFile = function (id, name, config) {
|
|
|
29
29
|
return response;
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
+
var retrieveFileInfo = function (fileId) {
|
|
33
|
+
return httpClient({
|
|
34
|
+
method: 'get',
|
|
35
|
+
url: "".concat(ENDPOINT_PATHS.FILES_PATH, "/content?fileId=").concat(fileId),
|
|
36
|
+
responseType: 'blob'
|
|
37
|
+
});
|
|
38
|
+
};
|
|
32
39
|
var fileService = {
|
|
33
40
|
uploadFile: uploadFile,
|
|
34
41
|
uploadFileInfo: uploadFileInfo,
|
|
35
|
-
downloadFile: downloadFile
|
|
42
|
+
downloadFile: downloadFile,
|
|
43
|
+
retrieveFileInfo: retrieveFileInfo
|
|
36
44
|
};
|
|
37
45
|
export { fileService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -157,6 +157,7 @@ declare const API: {
|
|
|
157
157
|
uploadFile: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
158
158
|
uploadFileInfo: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
159
159
|
downloadFile: (id: string, name: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
160
|
+
retrieveFileInfo: (fileId: string) => Promise<any>;
|
|
160
161
|
};
|
|
161
162
|
documentService: {
|
|
162
163
|
updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"approve_with_paci_app": "المتابعة من خلال PACI",
|
|
68
68
|
"ar": "ع",
|
|
69
69
|
"arabic": "اللغة العربية",
|
|
70
|
-
"article_of_association": "
|
|
70
|
+
"article_of_association": "يمكنك رفع ملف بصيغة JPG ،PDF ،PNG، على ألا يتجاوز حجمه 4 ميغابايت.",
|
|
71
71
|
"auth_brand_required": "العلامة التجارية مطلوبة",
|
|
72
72
|
"auth_entity_required": "المؤسسة مطلوب",
|
|
73
73
|
"auth_merchant_required": "التاجر مطلوب",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"civil_id_placeholder": "2xxxxxxxxx12",
|
|
179
179
|
"civil_id_title": "البطاقة المدنية",
|
|
180
180
|
"close_and_complete_later": "اغلق الان و اكمل لاحقا",
|
|
181
|
+
"code_sent_to": "تم إرسال الرمز إلى ",
|
|
181
182
|
"commercial_reg": "منشأة تجارية",
|
|
182
183
|
"commercial_reg_hint": "للمنشئات الصغيرة و المتوسطة و المنشأت الناشئة و المؤسسات برخصة مزاوة نشاط تجارى",
|
|
183
184
|
"company_individuals": "الأفراد بالشركة",
|
|
@@ -214,11 +215,12 @@
|
|
|
214
215
|
"data_loading_desc": "الرجاء الانتظار أثناء تحضير البيانات",
|
|
215
216
|
"data_loading_title": "تحضير البيانات",
|
|
216
217
|
"day": "اليوم",
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
218
|
+
"desc_drag_and_drop": "يرجى إرفاق الصفحة الأولى التي تظهر بيانات الحساب البنكي المطابقة. يمكنك رفع ملف بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجمه 4 ميغابايت.",
|
|
219
|
+
"desc_drag_and_drop_certificate": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
|
|
220
|
+
"desc_drag_and_drop_civilID": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
|
|
221
|
+
"desc_drag_and_drop_signature": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
|
|
222
|
+
"desc_drag_and_drop_tax_document": "يمكنك رفع 4 ملفات كحد أقصى بصيغة PDF أو JPG أو PNG، على ألا يتجاوز حجم كل ملف 4 ميغابايت.",
|
|
223
|
+
"description_brand_logo": "يمكنك رفع ملف بصيغة JPG أو PNG، على ألا يتجاوز حجمه 4 ميغابايت.",
|
|
222
224
|
"drag_and_drop": "قم بسحب وإدراج الكشف",
|
|
223
225
|
"edit": "تعديل",
|
|
224
226
|
"email_activation_description": "شكراً لاختيارك تاب للمدفوعات، لقد تم تفعيل بريدك الإلكتروني بنجاح!",
|
|
@@ -370,6 +372,7 @@
|
|
|
370
372
|
"join_our_community": "",
|
|
371
373
|
"kyc_already_submitted_title": "لقد وافقت مسبقاً على كافة الوثائق",
|
|
372
374
|
"kyc_dispute_policy": "سياسة المنازعات",
|
|
375
|
+
"kyc_privacy_policy": "سياسة الخصوصية",
|
|
373
376
|
"kyc_refund_policy": "سياسة الاسترجاع",
|
|
374
377
|
"kyc_success_button": "حساب لوحة التحكم",
|
|
375
378
|
"kyc_success_title": "تم تحديث حسابك بنجاح",
|
|
@@ -529,6 +532,8 @@
|
|
|
529
532
|
"select_terminal_label": "Terminal",
|
|
530
533
|
"select_terminal_placeholder": "الرجاء تحديد محطة طرفية",
|
|
531
534
|
"selected_activities": "الأنشطة المختارة",
|
|
535
|
+
"session_expired_otp": "انتهت صلاحية العملية. يرجى إدخال رمز التحقق المرسل للمتابعة.",
|
|
536
|
+
"session_invalid": "رمز التحقق غير صالح",
|
|
532
537
|
"share_count_hint": "0",
|
|
533
538
|
"share_count_label": "عدد الأسهم",
|
|
534
539
|
"share_value_hint": "0000",
|
|
@@ -642,6 +647,7 @@
|
|
|
642
647
|
"title_bank_statement": "شهادة الايبان البنكية",
|
|
643
648
|
"title_brand_logo": "لوجو العلامة التجارية",
|
|
644
649
|
"title_civil_id": "صورة الهوية الوطنية",
|
|
650
|
+
"title_commercial_registration_extract": "مستخرج السجل التجاري",
|
|
645
651
|
"title_connect_flow": "استقبل المدفوعات من تاب",
|
|
646
652
|
"title_license_certificate": "السجل التجاري للمنشأة",
|
|
647
653
|
"title_signature_file": "صورة من التوقيع",
|
|
@@ -680,8 +686,5 @@
|
|
|
680
686
|
"year": "السنة",
|
|
681
687
|
"yes": "نعم",
|
|
682
688
|
"your_brand_details": "تفاصيل علامتك التجارية",
|
|
683
|
-
"يرجى التحقق من اسم تطبيق ابل": ""
|
|
684
|
-
"session_expired_otp": "انتهت صلاحية العملية. يرجى إدخال رمز التحقق المرسل للمتابعة.",
|
|
685
|
-
"code_sent_to": "تم إرسال الرمز إلى ",
|
|
686
|
-
"session_invalid": "رمز التحقق غير صالح"
|
|
689
|
+
"يرجى التحقق من اسم تطبيق ابل": ""
|
|
687
690
|
}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"approve_with_paci_app": "Continue with PACI",
|
|
63
63
|
"ar": "ع",
|
|
64
64
|
"arabic": "اللغة العربية",
|
|
65
|
-
"article_of_association": "PDF, JPG or PNG files up to
|
|
65
|
+
"article_of_association": "PDF, JPG or PNG files up to 4mb.",
|
|
66
66
|
"auth_brand_required": "Brand is required",
|
|
67
67
|
"auth_entity_required": "Entity is required",
|
|
68
68
|
"auth_merchant_required": "Merchant is required",
|
|
@@ -184,6 +184,7 @@
|
|
|
184
184
|
"civil_id_placeholder": "2xxxxxxxxx12",
|
|
185
185
|
"civil_id_title": "Civil ID",
|
|
186
186
|
"close_and_complete_later": "Close and Complete Later",
|
|
187
|
+
"code_sent_to": "Code sent to ",
|
|
187
188
|
"commercial_reg": "Commercial entity",
|
|
188
189
|
"commercial_reg_hint": "Small & medium businesses, Startups and Enterprises with an authorised commercial licence.",
|
|
189
190
|
"commercial_registration": "Commercial registration",
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
"data_loading_desc": "Please wait as we are preparing data",
|
|
222
223
|
"data_loading_title": "Preparing data",
|
|
223
224
|
"day": "Day",
|
|
224
|
-
"desc_drag_and_drop": "First page showing matching bank details. PDF, JPG or PNG files up to
|
|
225
|
+
"desc_drag_and_drop": "First page showing matching bank details. PDF, JPG or PNG files up to 4mb.",
|
|
225
226
|
"desc_drag_and_drop_certificate": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
|
|
226
227
|
"desc_drag_and_drop_civilID": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
|
|
227
228
|
"desc_drag_and_drop_signature": "PDF, JPG or PNG files up to 4mb. 4 files maximum",
|
|
@@ -383,6 +384,7 @@
|
|
|
383
384
|
"join_our_community": "",
|
|
384
385
|
"kyc_already_submitted_title": "You already approved all documents",
|
|
385
386
|
"kyc_dispute_policy": "Dispute Policy",
|
|
387
|
+
"kyc_privacy_policy": "Privacy Policy",
|
|
386
388
|
"kyc_refund_policy": "Refund Policy",
|
|
387
389
|
"kyc_success_button": "Go to my board",
|
|
388
390
|
"kyc_success_title": "All done",
|
|
@@ -551,6 +553,8 @@
|
|
|
551
553
|
"select_terminal_label": "Terminal",
|
|
552
554
|
"select_terminal_placeholder": "Please select a terminal",
|
|
553
555
|
"selected_activities": "Selected Activities",
|
|
556
|
+
"session_expired_otp": "Session expired. Please verify your phone number to continue.",
|
|
557
|
+
"session_invalid": "Session Invalid",
|
|
554
558
|
"share_count_hint": "0",
|
|
555
559
|
"share_count_label": "Share Count",
|
|
556
560
|
"share_value_hint": "0000",
|
|
@@ -667,6 +671,7 @@
|
|
|
667
671
|
"title_bank_statement": "Bank IBAN certificate",
|
|
668
672
|
"title_brand_logo": "Brand Logo",
|
|
669
673
|
"title_civil_id": "Civil ID Attachment",
|
|
674
|
+
"title_commercial_registration_extract": "Commercial registration extract",
|
|
670
675
|
"title_connect_flow": "Connect Tap",
|
|
671
676
|
"title_license_certificate": "License Certificate",
|
|
672
677
|
"title_signature_file": "Signature Attachment",
|
|
@@ -707,8 +712,5 @@
|
|
|
707
712
|
"website_label": "Website",
|
|
708
713
|
"year": "Year",
|
|
709
714
|
"yes": "Yes",
|
|
710
|
-
"your_brand_details": "Your brand details"
|
|
711
|
-
"session_expired_otp": "Session expired. Please verify your phone number to continue.",
|
|
712
|
-
"code_sent_to": "Code sent to ",
|
|
713
|
-
"session_invalid": "Session Invalid"
|
|
715
|
+
"your_brand_details": "Your brand details"
|
|
714
716
|
}
|
|
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
|
|
|
33
33
|
var _b;
|
|
34
34
|
var theme = _a.theme;
|
|
35
35
|
return (_b = {},
|
|
36
|
-
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
|
|
36
|
+
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
|
|
37
37
|
_b);
|
|
38
38
|
});
|
|
39
39
|
var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ScreenStepNavigation, BusinessType, POSInfo, TerminalInfo } from '../@types';
|
|
2
2
|
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
|
|
3
|
+
export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
|
|
3
4
|
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
4
5
|
export declare const CLIENT_ORIGIN: string;
|
|
5
6
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
|
@@ -130,6 +131,8 @@ export declare const AUTH_STEP_NAMES: {
|
|
|
130
131
|
export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
131
132
|
CREATE_AUTH_MOBILE: string;
|
|
132
133
|
VERIFY_AUTH_MOBILE: string;
|
|
134
|
+
CREATE_AUTH_EMAIL: string;
|
|
135
|
+
VERIFY_AUTH_EMAIL: string;
|
|
133
136
|
CREATE_AUTH_CIVIL_ID: string;
|
|
134
137
|
VERIFY_AUTH_CIVIL_ID: string;
|
|
135
138
|
CREATE_AUTH_NID: string;
|
package/build/constants/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BusinessType } from '../@types';
|
|
2
2
|
import { CONNECT_FLOWS } from './flows';
|
|
3
3
|
export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
|
|
4
|
+
export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
|
|
4
5
|
export var CONNECT_PROD_URL = 'https://connect.tap.company';
|
|
5
6
|
export var CLIENT_ORIGIN = window.location.origin;
|
|
6
7
|
export var TAP_WEBSITE = 'https://www.tap.company/';
|
|
@@ -151,9 +152,15 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
151
152
|
prev: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_CIVIL_ID_STEP'],
|
|
152
153
|
order: 1
|
|
153
154
|
},
|
|
155
|
+
{
|
|
156
|
+
name: 'CONNECT_EXPRESS_EMAIL_STEP',
|
|
157
|
+
next: 'CONNECT_EXPRESS_OTP_STEP',
|
|
158
|
+
prev: 'CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP',
|
|
159
|
+
order: 1
|
|
160
|
+
},
|
|
154
161
|
{
|
|
155
162
|
name: 'CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP',
|
|
156
|
-
next: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_MOBILE_STEP'],
|
|
163
|
+
next: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_MOBILE_STEP', 'CONNECT_EXPRESS_EMAIL_STEP'],
|
|
157
164
|
prev: '',
|
|
158
165
|
order: 1
|
|
159
166
|
},
|
|
@@ -196,20 +203,19 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
196
203
|
'CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP',
|
|
197
204
|
'CONNECT_EXPRESS_OTP_VERIFY_SECURITY_ERROR_STEP'
|
|
198
205
|
],
|
|
199
|
-
prev: 'CONNECT_EXPRESS_MOBILE_STEP',
|
|
200
|
-
order: 2
|
|
201
|
-
back: 'CONNECT_EXPRESS_MOBILE_STEP'
|
|
206
|
+
prev: ['CONNECT_EXPRESS_MOBILE_STEP', 'CONNECT_EXPRESS_EMAIL_STEP'],
|
|
207
|
+
order: 2
|
|
202
208
|
},
|
|
203
209
|
{
|
|
204
210
|
name: 'CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP',
|
|
205
211
|
next: ['CONNECT_EXPRESS_AUTH_MERCHANT_LIST_STEP', 'CONNECT_EXPRESS_AUTH_ACCOUNT_CREATED_STEP'],
|
|
206
|
-
prev: ['CONNECT_EXPRESS_MOBILE_STEP', 'CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_CIVIL_ID_STEP'],
|
|
212
|
+
prev: ['CONNECT_EXPRESS_MOBILE_STEP', 'CONNECT_EXPRESS_EMAIL_STEP', 'CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_CIVIL_ID_STEP'],
|
|
207
213
|
order: 3
|
|
208
214
|
},
|
|
209
215
|
{
|
|
210
216
|
name: 'CONNECT_EXPRESS_NID_MISSED_STEP',
|
|
211
217
|
next: ['CONNECT_EXPRESS_IDENTITY_VERIFY_NAFATH_STEP', 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP'],
|
|
212
|
-
prev: 'CONNECT_EXPRESS_MOBILE_STEP',
|
|
218
|
+
prev: ['CONNECT_EXPRESS_MOBILE_STEP', 'CONNECT_EXPRESS_EMAIL_STEP'],
|
|
213
219
|
order: 3
|
|
214
220
|
},
|
|
215
221
|
{
|
|
@@ -270,6 +276,7 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
270
276
|
],
|
|
271
277
|
prev: [
|
|
272
278
|
'CONNECT_EXPRESS_MOBILE_STEP',
|
|
279
|
+
'CONNECT_EXPRESS_EMAIL_STEP',
|
|
273
280
|
'CONNECT_EXPRESS_NID_STEP',
|
|
274
281
|
'CONNECT_EXPRESS_CIVIL_ID_STEP',
|
|
275
282
|
'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP',
|
|
@@ -1314,6 +1321,8 @@ export var AUTH_STEP_NAMES = {
|
|
|
1314
1321
|
export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
1315
1322
|
CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
|
|
1316
1323
|
VERIFY_AUTH_MOBILE: 'connect_express_verify_auth_mobile',
|
|
1324
|
+
CREATE_AUTH_EMAIL: 'connect_express_create_auth_email',
|
|
1325
|
+
VERIFY_AUTH_EMAIL: 'connect_express_verify_auth_email',
|
|
1317
1326
|
CREATE_AUTH_CIVIL_ID: 'connect_express_create_auth_civil_id',
|
|
1318
1327
|
VERIFY_AUTH_CIVIL_ID: 'connect_express_verify_auth_civil_id',
|
|
1319
1328
|
CREATE_AUTH_NID: 'connect_express_create_auth_nid',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams, AuthenticationListFormValues, AuthMerchantFormValues, DOBFormValues, MobileOwnershipFormValues, AuthForScreen } from '../../../@types';
|
|
2
|
+
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams, AuthenticationListFormValues, AuthMerchantFormValues, DOBFormValues, MobileOwnershipFormValues, AuthForScreen, AuthEmailFormValues } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const updateBusinessCountryAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
5
5
|
export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -37,6 +37,14 @@ export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
37
37
|
response: any;
|
|
38
38
|
formData: MobileFormValues;
|
|
39
39
|
}, MobileFormValues, {}>;
|
|
40
|
+
export declare const createEmailAuthAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
41
|
+
response: any;
|
|
42
|
+
formData: AuthEmailFormValues;
|
|
43
|
+
}, AuthEmailFormValues, {}>;
|
|
44
|
+
export declare const resendEmailAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
45
|
+
response: any;
|
|
46
|
+
formData: AuthEmailFormValues;
|
|
47
|
+
}, AuthEmailFormValues, {}>;
|
|
40
48
|
export declare const createAuthSessionExpiredAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
41
49
|
data: any;
|
|
42
50
|
}, boolean, {}>;
|
|
@@ -65,6 +73,7 @@ export declare const createCivilIdAuthAsync: import("@reduxjs/toolkit").AsyncThu
|
|
|
65
73
|
formData: CivilFormValues;
|
|
66
74
|
}, CivilFormValues, {}>;
|
|
67
75
|
export declare const verifyMobileOtpAsync: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
76
|
+
export declare const verifyEmailOtpAsync: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
68
77
|
export declare const verifyPACIAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {}>;
|
|
69
78
|
export declare const createCivilIDAuthIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
70
79
|
response: any;
|
|
@@ -157,6 +166,7 @@ interface ResponseData {
|
|
|
157
166
|
export interface ConnectExpressData {
|
|
158
167
|
isLeadIdPassed: boolean;
|
|
159
168
|
mobileData: MobileFormValues;
|
|
169
|
+
emailData: AuthEmailFormValues;
|
|
160
170
|
nidData: NIDFormValues;
|
|
161
171
|
civilIdData: CivilFormValues;
|
|
162
172
|
otpData: OTPFormValues & {
|