@tap-payments/auth-jsconnect 2.12.10-development → 2.12.10-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/README.md +29 -0
- package/build/@types/app.d.ts +3 -0
- package/build/@types/app.js +1 -0
- package/build/@types/config.d.ts +2 -0
- package/build/@types/form.d.ts +1 -0
- package/build/api/document.d.ts +1 -1
- package/build/app/settings.d.ts +2 -1
- package/build/app/settings.js +8 -5
- package/build/assets/locales/ar.json +13 -10
- package/build/assets/locales/en.json +8 -6
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +1 -2
- package/build/constants/api.js +6 -2
- package/build/constants/app.d.ts +3 -0
- package/build/constants/app.js +15 -6
- package/build/features/app/brand/brandStore.js +5 -2
- package/build/features/app/connectExpress/connectExpressStore.d.ts +11 -1
- package/build/features/app/connectExpress/connectExpressStore.js +199 -19
- package/build/features/app/entity/entityStore.js +56 -35
- package/build/features/app/individual/individualStore.js +1 -0
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +6 -2
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +5 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +2 -2
- 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/EntityTypeList.d.ts +2 -2
- 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/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
- package/build/features/shared/Address/CountryList.d.ts +2 -2
- package/build/features/shared/Address/InputSelect.d.ts +2 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/terminal/screens/shared/styles.d.ts +1 -1
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- 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 +6 -7
- package/build/utils/string.d.ts +3 -2
- package/build/utils/string.js +17 -1
- package/package.json +2 -2
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +0 -9
package/README.md
CHANGED
|
@@ -202,6 +202,35 @@ const App = () => {
|
|
|
202
202
|
| onStepError `required` - `function` | callback function will call in case if any error happened in the screen |
|
|
203
203
|
| onStepCompleted `optional` - `function` | callback function will call after completing each step |
|
|
204
204
|
| onStepStarted `required` - `function` | callback function will call in the beginning of each step |
|
|
205
|
+
| region `optional` - `string` | selects the production API (middleware) region, see [Regions](#regions) |
|
|
206
|
+
|
|
207
|
+
## Regions
|
|
208
|
+
|
|
209
|
+
The library decides which backend (middleware) URL to call from the `publicKey` and the optional `region` prop.
|
|
210
|
+
|
|
211
|
+
- A `pk_test_*` key always uses the **development** URL. `region` is ignored.
|
|
212
|
+
- A `pk_live_*` key uses the production URL that matches `region`. If `region` is empty or not in the table, it falls back to the **global production** URL.
|
|
213
|
+
|
|
214
|
+
| `region` value | Meaning | Base URL |
|
|
215
|
+
| -------------- | ----------------------- | ----------------------------------------------- |
|
|
216
|
+
| _(empty)_ | Global production | `https://connect-mw.tap.company/middleware` |
|
|
217
|
+
| `sa` | Saudi production | `https://connect-mw.tap.com.sa/middleware` |
|
|
218
|
+
| `sa-dr` | Saudi disaster recovery | `https://connect-mw-tmp.tap.com.sa/middleware` |
|
|
219
|
+
| `sahu` | Saudi Huawei cloud | `https://connect-mw-temp.tap.com.sa/middleware` |
|
|
220
|
+
|
|
221
|
+
Notes:
|
|
222
|
+
|
|
223
|
+
- `region` is matched as a whole value and is case-insensitive (`SA` and `sa` are the same).
|
|
224
|
+
- Matching is exact. A value such as `sa-xyz` is **not** treated as Saudi and falls back to global production. Use one of the values above.
|
|
225
|
+
- To support a new region, add its URL and map it in `REGION_BASE_URLS` in `src/constants/api.ts`.
|
|
226
|
+
|
|
227
|
+
```js
|
|
228
|
+
<ConnectLib
|
|
229
|
+
publicKey={'pk_live_xxxxxx'}
|
|
230
|
+
region='sahu' // Saudi Huawei cloud
|
|
231
|
+
...
|
|
232
|
+
/>
|
|
233
|
+
```
|
|
205
234
|
|
|
206
235
|
## Branch Information
|
|
207
236
|
|
package/build/@types/app.d.ts
CHANGED
|
@@ -343,6 +343,8 @@ export declare enum FlowsTypes {
|
|
|
343
343
|
kyc = "kyc",
|
|
344
344
|
TERMINAL = "terminal"
|
|
345
345
|
}
|
|
346
|
+
export declare type FlowStartType = 'phone' | 'email' | 'id';
|
|
347
|
+
export declare type FlowStart = Record<string, FlowStartType>;
|
|
346
348
|
export declare type FlowInfo = {
|
|
347
349
|
name: string;
|
|
348
350
|
status: string;
|
|
@@ -420,6 +422,7 @@ export declare enum IndividualType {
|
|
|
420
422
|
}
|
|
421
423
|
export declare enum DocumentPurpose {
|
|
422
424
|
CR = "commercial_registration",
|
|
425
|
+
COMMERCIAL_REGISTRATION_EXTRACT = "commercial_registration_extract",
|
|
423
426
|
ARTICLE_ASSOCIATION = "article_of_association",
|
|
424
427
|
BANK_STATEMENT = "bank_statement",
|
|
425
428
|
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/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FlowStart } from './app';
|
|
1
2
|
export interface ConfigInfo {
|
|
2
3
|
operator: Operator;
|
|
3
4
|
scope: string;
|
|
@@ -45,5 +46,6 @@ export interface SettingAsyncData {
|
|
|
45
46
|
merchant: RecordType;
|
|
46
47
|
operator: RecordType;
|
|
47
48
|
config: RecordType;
|
|
49
|
+
flow_start?: FlowStart;
|
|
48
50
|
}
|
|
49
51
|
export {};
|
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/app/settings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from './store';
|
|
2
|
-
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, BusinessCountryInfo, ConfigInfo, LocalProps, SettingAsyncData } from '../@types';
|
|
2
|
+
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, BusinessCountryInfo, ConfigInfo, LocalProps, SettingAsyncData, FlowStart } from '../@types';
|
|
3
3
|
interface SettingParams {
|
|
4
4
|
disableCountries?: boolean;
|
|
5
5
|
disableLocale?: boolean;
|
|
@@ -36,6 +36,7 @@ export interface SettingsData {
|
|
|
36
36
|
ipCountry: CountryCode;
|
|
37
37
|
businessCountries: Array<BusinessCountryInfo>;
|
|
38
38
|
locale?: LocalProps;
|
|
39
|
+
flowStart?: FlowStart;
|
|
39
40
|
}
|
|
40
41
|
export interface SettingsState extends SharedState<SettingsData> {
|
|
41
42
|
}
|
package/build/app/settings.js
CHANGED
|
@@ -62,7 +62,7 @@ import i18n from '../i18n';
|
|
|
62
62
|
import { updateLocale } from '../utils/locale';
|
|
63
63
|
import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
|
|
64
64
|
export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
|
-
var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, _d, configInfo, matureData, lang, initPayload, _e, country_list, ip_info, merchant, operator, config, _f, list, _g, ip, latitude, longitude, country_code, countries, _h, operator_1, scope, data, lead, board, interfaceData, redirect, post, platforms, payment_provider, _j, locale_1, edges, deviceInfo, isValidOperator, countryCode, businessCountry, ipCountry;
|
|
65
|
+
var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, _d, configInfo, matureData, lang, initPayload, _e, country_list, ip_info, merchant, operator, config, flow_start, _f, list, _g, ip, latitude, longitude, country_code, countries, _h, operator_1, scope, data, lead, board, interfaceData, redirect, post, platforms, payment_provider, _j, locale_1, edges, deviceInfo, isValidOperator, countryCode, businessCountry, ipCountry;
|
|
66
66
|
return __generator(this, function (_k) {
|
|
67
67
|
switch (_k.label) {
|
|
68
68
|
case 0:
|
|
@@ -97,7 +97,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
97
97
|
_f = (_k.sent());
|
|
98
98
|
_k.label = 5;
|
|
99
99
|
case 5:
|
|
100
|
-
_e = _f, country_list = _e.country_list, ip_info = _e.ip_info, merchant = _e.merchant, operator = _e.operator, config = _e.config;
|
|
100
|
+
_e = _f, country_list = _e.country_list, ip_info = _e.ip_info, merchant = _e.merchant, operator = _e.operator, config = _e.config, flow_start = _e.flow_start;
|
|
101
101
|
list = __spreadArray([], ((country_list === null || country_list === void 0 ? void 0 : country_list.list) || []), true);
|
|
102
102
|
_g = ip_info || {}, ip = _g.ip, latitude = _g.latitude, longitude = _g.longitude, country_code = _g.country_code;
|
|
103
103
|
countries = sortCountries(list.filter(function (c) { return c.idd_prefix; }));
|
|
@@ -167,14 +167,15 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
167
167
|
ip_info: ip_info,
|
|
168
168
|
merchant: merchant,
|
|
169
169
|
operator: operator,
|
|
170
|
-
locale: locale
|
|
170
|
+
locale: locale,
|
|
171
|
+
flow_start: flow_start
|
|
171
172
|
});
|
|
172
173
|
if (!(matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function')) return [3, 7];
|
|
173
174
|
return [4, configInfo.onMaturityChanged(matureData)];
|
|
174
175
|
case 6:
|
|
175
176
|
_k.sent();
|
|
176
177
|
_k.label = 7;
|
|
177
|
-
case 7: return [2, __assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (merchant && { merchant: merchant }))];
|
|
178
|
+
case 7: return [2, __assign(__assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (flow_start && { flowStart: flow_start })), (merchant && { merchant: merchant }))];
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
}); });
|
|
@@ -371,7 +372,7 @@ export var settingsSlice = createSlice({
|
|
|
371
372
|
state.error = null;
|
|
372
373
|
});
|
|
373
374
|
builder.addCase(fetchAppSettingsSync.fulfilled, function (state, action) {
|
|
374
|
-
var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry;
|
|
375
|
+
var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry, flowStart = _a.flowStart;
|
|
375
376
|
state.data.countries = countries;
|
|
376
377
|
if (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2)
|
|
377
378
|
state.data.businessCountry = businessCountry;
|
|
@@ -381,6 +382,8 @@ export var settingsSlice = createSlice({
|
|
|
381
382
|
state.data.isValidOperator = isValidOperator;
|
|
382
383
|
if (merchant)
|
|
383
384
|
state.data.merchant = merchant;
|
|
385
|
+
if (flowStart)
|
|
386
|
+
state.data.flowStart = flowStart;
|
|
384
387
|
state.data.isMaturityExpress = isMaturityExpress;
|
|
385
388
|
var countryIso2 = (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2) || (ipCountry === null || ipCountry === void 0 ? void 0 : ipCountry.iso2);
|
|
386
389
|
if (locale && countryIso2)
|
|
@@ -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
|
}
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { SlideProps as MUISlideProps } from '@mui/material/Slide';
|
|
3
3
|
export interface SlideProps extends MUISlideProps {
|
|
4
4
|
}
|
|
5
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "in" | "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
5
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "id" | "in" | "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "timeout" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
|
|
6
6
|
export default _default;
|
|
@@ -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/api.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export declare const ENDPOINT_PATHS: {
|
|
|
11
11
|
MIGRATION_STATUS: string;
|
|
12
12
|
SANDBOX_BASE_URL: string;
|
|
13
13
|
PRODUCTION_BASE_URL: string;
|
|
14
|
-
PRODUCTION_BASE_URL_SA: string;
|
|
15
|
-
PRODUCTION_BASE_URL_SA_DR: string;
|
|
16
14
|
DEV_BASE_URL: string;
|
|
17
15
|
BUSINESS_COUNTRIES: string;
|
|
18
16
|
COUNTRIES: string;
|
|
@@ -59,3 +57,4 @@ export declare const ENDPOINT_PATHS: {
|
|
|
59
57
|
CURRENCY: string;
|
|
60
58
|
SEGMENT_LIST: string;
|
|
61
59
|
};
|
|
60
|
+
export declare const REGION_BASE_URLS: Record<string, string>;
|
package/build/constants/api.js
CHANGED
|
@@ -2,6 +2,7 @@ var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
|
|
|
2
2
|
var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
|
|
3
3
|
var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
|
|
4
4
|
var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw-tmp.tap.com.sa/middleware';
|
|
5
|
+
var PRODUCTION_BASE_URL_SA_HU = 'https://connect-mw-temp.tap.com.sa/middleware';
|
|
5
6
|
var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
6
7
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
7
8
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
@@ -70,8 +71,6 @@ export var ENDPOINT_PATHS = {
|
|
|
70
71
|
MIGRATION_STATUS: MIGRATION_STATUS,
|
|
71
72
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
72
73
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
73
|
-
PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
|
|
74
|
-
PRODUCTION_BASE_URL_SA_DR: PRODUCTION_BASE_URL_SA_DR,
|
|
75
74
|
DEV_BASE_URL: DEV_BASE_URL,
|
|
76
75
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
77
76
|
COUNTRIES: API_COUNTRIES,
|
|
@@ -118,3 +117,8 @@ export var ENDPOINT_PATHS = {
|
|
|
118
117
|
CURRENCY: CURRENCY_PATH,
|
|
119
118
|
SEGMENT_LIST: SEGMENT_LIST
|
|
120
119
|
};
|
|
120
|
+
export var REGION_BASE_URLS = {
|
|
121
|
+
sa: PRODUCTION_BASE_URL_SA,
|
|
122
|
+
'sa-dr': PRODUCTION_BASE_URL_SA_DR,
|
|
123
|
+
sahu: PRODUCTION_BASE_URL_SA_HU
|
|
124
|
+
};
|
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',
|
|
@@ -858,7 +858,7 @@ export var brandSlice = createSlice({
|
|
|
858
858
|
state.data.brandActivities.termAndConditionChecked = termFlag;
|
|
859
859
|
state.data.brandActivities.transactionPolicy = termFlag;
|
|
860
860
|
state.data.brandActivities.refundPolicy = termFlag;
|
|
861
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { activities: entity_activities }), (entityData && { entity: entityData })), { activitiesDefaultValues: {
|
|
861
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { brand: data, activities: entity_activities }), (entityData && { entity: entityData })), { activitiesDefaultValues: {
|
|
862
862
|
activities: selectedActivity,
|
|
863
863
|
customerLocations: locations,
|
|
864
864
|
expectedSale: sales,
|
|
@@ -880,9 +880,12 @@ export var brandSlice = createSlice({
|
|
|
880
880
|
state.loading = true;
|
|
881
881
|
state.error = null;
|
|
882
882
|
})
|
|
883
|
-
.addCase(updateBrandActivities.fulfilled, function (state) {
|
|
883
|
+
.addCase(updateBrandActivities.fulfilled, function (state, action) {
|
|
884
884
|
state.loading = false;
|
|
885
885
|
state.error = null;
|
|
886
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
887
|
+
state.data.brandActivities = __assign(__assign({}, state.data.brandActivities), formData);
|
|
888
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { brand: data, activitiesDefaultValues: formData });
|
|
886
889
|
})
|
|
887
890
|
.addCase(retrieveSegmentDataList.pending, function (state) {
|
|
888
891
|
state.loading = true;
|
|
@@ -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 & {
|