@tap-payments/auth-jsconnect 2.4.74-test → 2.4.75-test
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 +23 -15
- package/build/@types/form.d.ts +20 -20
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +11 -11
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +11 -11
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +8 -8
- package/build/api/file.d.ts +1 -1
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +2 -1
- package/build/api/lead.d.ts +11 -11
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +5 -14
- package/build/app/settings.js +31 -45
- package/build/app/store.d.ts +4 -4
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/constants/app.d.ts +1 -1
- package/build/features/app/bank/bankStore.d.ts +10 -82
- package/build/features/app/bank/bankStore.js +1 -1
- package/build/features/app/brand/brandStore.d.ts +15 -132
- package/build/features/app/brand/brandStore.js +1 -1
- package/build/features/app/business/businessStore.d.ts +18 -162
- package/build/features/app/business/businessStore.js +1 -1
- package/build/features/app/connect/connectStore.d.ts +15 -141
- package/build/features/app/connect/connectStore.js +1 -1
- package/build/features/app/connectExpress/connectExpressStore.d.ts +22 -211
- package/build/features/app/connectExpress/connectExpressStore.js +1 -1
- package/build/features/app/entity/entityStore.d.ts +10 -82
- package/build/features/app/entity/entityStore.js +1 -1
- package/build/features/app/individual/individualStore.d.ts +22 -175
- package/build/features/app/individual/individualStore.js +1 -1
- package/build/features/app/password/passwordStore.d.ts +12 -102
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +7 -61
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +9 -72
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/bank/screens/BankDetails/BankName.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -6
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +7 -7
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -4
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +19 -21
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +3 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -2
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +6 -6
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
- package/build/features/shared/Address/CountryList.d.ts +6 -6
- package/build/features/shared/Address/InputSelect.d.ts +6 -6
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +1 -1
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/UploadFile/FileUpload.d.ts +3 -3
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +3 -3
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -1
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +1 -1
- package/build/hooks/useAppConfig.d.ts +4 -4
- package/build/hooks/useAppConfig.js +9 -2
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
- package/build/hooks/useFormReadOnly.d.ts +1 -1
- package/build/utils/array.js +1 -1
- package/package.json +1 -1
package/build/api/lead.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { LanguageMode } from '../@types';
|
|
3
|
-
type Name = {
|
|
3
|
+
declare type Name = {
|
|
4
4
|
title?: string;
|
|
5
5
|
first?: string;
|
|
6
6
|
middle?: string;
|
|
7
7
|
last?: string;
|
|
8
8
|
};
|
|
9
|
-
type Contact = {
|
|
9
|
+
declare type Contact = {
|
|
10
10
|
email?: string;
|
|
11
11
|
phone?: {
|
|
12
12
|
country_code?: string;
|
|
13
13
|
number?: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
type BusinessName = {
|
|
16
|
+
declare type BusinessName = {
|
|
17
17
|
en?: string;
|
|
18
18
|
ar?: string;
|
|
19
19
|
};
|
|
20
|
-
type BrandTitle = {
|
|
20
|
+
declare type BrandTitle = {
|
|
21
21
|
en?: string;
|
|
22
22
|
ar?: string;
|
|
23
23
|
zh?: string;
|
|
24
24
|
};
|
|
25
|
-
type BrandContent = {
|
|
25
|
+
declare type BrandContent = {
|
|
26
26
|
tag_line?: BrandTitle;
|
|
27
27
|
about?: BrandTitle;
|
|
28
28
|
};
|
|
29
|
-
type BrandInfo = {
|
|
29
|
+
declare type BrandInfo = {
|
|
30
30
|
id?: string;
|
|
31
31
|
name?: BrandTitle;
|
|
32
32
|
sector?: Array<string>;
|
|
@@ -35,7 +35,7 @@ type BrandInfo = {
|
|
|
35
35
|
logo?: string;
|
|
36
36
|
content?: BrandContent;
|
|
37
37
|
};
|
|
38
|
-
export type UpdateLeadBody = {
|
|
38
|
+
export declare type UpdateLeadBody = {
|
|
39
39
|
step_name?: string;
|
|
40
40
|
id: string;
|
|
41
41
|
encryption_contract?: Array<string>;
|
|
@@ -67,11 +67,11 @@ export type UpdateLeadBody = {
|
|
|
67
67
|
team: string;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
export type LeadVerifyBody = {
|
|
70
|
+
export declare type LeadVerifyBody = {
|
|
71
71
|
verify_token: string;
|
|
72
72
|
service_name: string;
|
|
73
73
|
};
|
|
74
|
-
export type ExpressLeadVerifyBody = {
|
|
74
|
+
export declare type ExpressLeadVerifyBody = {
|
|
75
75
|
token: string;
|
|
76
76
|
};
|
|
77
77
|
export interface LeadOTPVerifyBody extends LeadVerifyBody {
|
|
@@ -79,11 +79,11 @@ export interface LeadOTPVerifyBody extends LeadVerifyBody {
|
|
|
79
79
|
step_name: string;
|
|
80
80
|
encryption_contract: Array<string>;
|
|
81
81
|
}
|
|
82
|
-
export type CreateLeadBody = {
|
|
82
|
+
export declare type CreateLeadBody = {
|
|
83
83
|
individual_id: string;
|
|
84
84
|
country_code: string;
|
|
85
85
|
};
|
|
86
|
-
export type LeadIdentityUpdateBody = {
|
|
86
|
+
export declare type LeadIdentityUpdateBody = {
|
|
87
87
|
id: string;
|
|
88
88
|
identification: {
|
|
89
89
|
id: string;
|
package/build/api/operator.d.ts
CHANGED
package/build/api/operator.js
CHANGED
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (
|
|
16
|
+
while (_) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
package/build/api/user.d.ts
CHANGED
package/build/app/settings.d.ts
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import { RootState } from './store';
|
|
2
|
-
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo,
|
|
2
|
+
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, ConfigExpressTokenParams } from '../@types';
|
|
3
3
|
interface SettingParams {
|
|
4
4
|
disableCountries?: boolean;
|
|
5
5
|
disableLocale?: boolean;
|
|
6
6
|
mdn: string;
|
|
7
7
|
maturity?: 'full' | 'express';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
configToken?: string;
|
|
9
|
+
onVerifyConfigTokenSuccess?: (data: ConfigExpressTokenParams) => Promise<void>;
|
|
10
10
|
}
|
|
11
|
-
export declare const fetchAppSettingsSync: import("@reduxjs/toolkit").AsyncThunk<any, SettingParams, {
|
|
12
|
-
state?: unknown;
|
|
13
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
14
|
-
extra?: unknown;
|
|
15
|
-
rejectValue?: unknown;
|
|
16
|
-
serializedErrorType?: unknown;
|
|
17
|
-
pendingMeta?: unknown;
|
|
18
|
-
fulfilledMeta?: unknown;
|
|
19
|
-
rejectedMeta?: unknown;
|
|
20
|
-
}>;
|
|
11
|
+
export declare const fetchAppSettingsSync: import("@reduxjs/toolkit").AsyncThunk<any, SettingParams, {}>;
|
|
21
12
|
export interface SettingsData {
|
|
22
13
|
skin: ThemeMode;
|
|
23
14
|
language: LanguageMode;
|
|
@@ -50,7 +41,7 @@ export declare const settingsSlice: import("@reduxjs/toolkit").Slice<SettingsSta
|
|
|
50
41
|
handleSetAppConfig: (state: SettingsState, action: ActionState<LibConfig>) => void;
|
|
51
42
|
handleSetCountryByIso2: (state: SettingsState, action: ActionState<string>) => void;
|
|
52
43
|
}, "settings">;
|
|
53
|
-
export declare const handleSkin: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeMode,
|
|
44
|
+
export declare const handleSkin: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeMode, string>, handleLanguage: import("@reduxjs/toolkit").ActionCreatorWithPayload<LanguageMode, string>, handleActiveFlowScreens: import("@reduxjs/toolkit").ActionCreatorWithPayload<ScreenStepNavigation[], string>, handleNextScreenStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, string>, handlePrevScreenStep: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string | undefined, string>, handleCurrentActiveScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, handleSetAppConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<LibConfig, string>, handleOpen: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, handleSetCountryByIso2: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, handleIsTapOrigin: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, handelBoardMaturity: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, handlePublicKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
54
45
|
declare const _default: import("redux").Reducer<SettingsState, import("redux").AnyAction>;
|
|
55
46
|
export default _default;
|
|
56
47
|
export declare const settingsSelector: (state: RootState) => SettingsState;
|
package/build/app/settings.js
CHANGED
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (
|
|
27
|
+
while (_) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -53,64 +53,52 @@ import i18n from '../i18n';
|
|
|
53
53
|
import { updateLocale } from '../utils/locale';
|
|
54
54
|
import API, { setAxiosGlobalHeaders } from '../api';
|
|
55
55
|
export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries,
|
|
56
|
+
var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, configInfo, matureData, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, domain, language_1, country, scope, public_key, maturity_1, board_maturity, deviceInfo, isValidOperator, countries, countryCode, isKWOrSA, businessCountry;
|
|
57
57
|
return __generator(this, function (_f) {
|
|
58
58
|
switch (_f.label) {
|
|
59
59
|
case 0:
|
|
60
60
|
settings = thunkApi.getState().settings;
|
|
61
61
|
_a = settings.data, appConfig = _a.appConfig, language = _a.language;
|
|
62
62
|
_b = getBrowserInfo(), client = _b.client, device = _b.device, os = _b.os;
|
|
63
|
-
disableLocale = params.disableLocale, maturity = params.maturity, disableCountries = params.disableCountries,
|
|
63
|
+
disableLocale = params.disableLocale, maturity = params.maturity, disableCountries = params.disableCountries, configToken = params.configToken, onVerifyConfigTokenSuccess = params.onVerifyConfigTokenSuccess;
|
|
64
64
|
return [4, Promise.all([getFingerPrint(), API.firebaseService.getLocale(disableLocale)])];
|
|
65
65
|
case 1:
|
|
66
66
|
_c = _f.sent(), visitorId = _c[0].visitorId, locale = _c[1];
|
|
67
|
-
|
|
67
|
+
configInfo = appConfig;
|
|
68
|
+
matureData = maturity;
|
|
68
69
|
setAxiosGlobalHeaders({
|
|
69
70
|
bi: visitorId || '',
|
|
70
71
|
mdn: encryptString(params.mdn || window.location.origin),
|
|
71
|
-
authorization: encryptString(publicKey)
|
|
72
|
+
authorization: encryptString(configInfo.publicKey)
|
|
72
73
|
});
|
|
73
|
-
|
|
74
|
-
payload = {
|
|
75
|
-
token: expressToken
|
|
76
|
-
};
|
|
77
|
-
return [4, API.leadService.verifyExpressLeadToken(payload)];
|
|
78
|
-
case 2:
|
|
79
|
-
data = _f.sent();
|
|
80
|
-
onExpressVerifyTokenSuccess === null || onExpressVerifyTokenSuccess === void 0 ? void 0 : onExpressVerifyTokenSuccess(data);
|
|
81
|
-
public_key = (data || {}).public_key;
|
|
82
|
-
if (public_key) {
|
|
83
|
-
publicKey = public_key;
|
|
84
|
-
setAxiosGlobalHeaders({
|
|
85
|
-
bi: visitorId || '',
|
|
86
|
-
mdn: encryptString(params.mdn || window.location.origin),
|
|
87
|
-
authorization: encryptString(publicKey)
|
|
88
|
-
});
|
|
89
|
-
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
90
|
-
}
|
|
91
|
-
_f.label = 3;
|
|
92
|
-
case 3:
|
|
93
|
-
initPayload = {
|
|
94
|
-
type: 'website',
|
|
95
|
-
app_client_version: 'js-auth-connect',
|
|
96
|
-
requirer_browser: "".concat(client === null || client === void 0 ? void 0 : client.name, " , ").concat(client === null || client === void 0 ? void 0 : client.version),
|
|
97
|
-
os: "".concat(os === null || os === void 0 ? void 0 : os.name, " , ").concat(os === null || os === void 0 ? void 0 : os.version),
|
|
98
|
-
locale: language,
|
|
99
|
-
data_required: {
|
|
74
|
+
initPayload = __assign(__assign({ type: 'website', app_client_version: 'js-auth-connect', requirer_browser: "".concat(client === null || client === void 0 ? void 0 : client.name, " , ").concat(client === null || client === void 0 ? void 0 : client.version), os: "".concat(os === null || os === void 0 ? void 0 : os.name, " , ").concat(os === null || os === void 0 ? void 0 : os.version), locale: language }, (configToken && { config_token: configToken })), { data_required: {
|
|
100
75
|
country_list: !disableCountries
|
|
101
|
-
}
|
|
102
|
-
};
|
|
76
|
+
} });
|
|
103
77
|
return [4, API.initService.getInitialData(initPayload)];
|
|
104
|
-
case
|
|
105
|
-
_d = _f.sent(), country_list = _d.country_list, ip_info = _d.ip_info, merchant = _d.merchant, operator = _d.operator;
|
|
78
|
+
case 2:
|
|
79
|
+
_d = _f.sent(), country_list = _d.country_list, ip_info = _d.ip_info, merchant = _d.merchant, operator = _d.operator, config = _d.config;
|
|
106
80
|
list = (country_list || { list: [] }).list;
|
|
107
81
|
_e = ip_info || {}, ip = _e.ip, latitude = _e.latitude, longitude = _e.longitude;
|
|
82
|
+
if (config) {
|
|
83
|
+
domain = config.domain, language_1 = config.language, country = config.country, scope = config.scope, public_key = config.public_key, maturity_1 = config.maturity, board_maturity = config.board_maturity;
|
|
84
|
+
configInfo = __assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), (domain && { merchantDomain: domain })), (language_1 && { language: language_1 })), (country && { businessCountryCode: country })), (scope && { scope: scope })), (public_key && { publicKey: public_key }));
|
|
85
|
+
if (typeof maturity_1 === 'boolean')
|
|
86
|
+
matureData = maturity_1 ? 'full' : 'express';
|
|
87
|
+
thunkApi.dispatch(handleSetAppConfig(configInfo));
|
|
88
|
+
thunkApi.dispatch(handleLanguage(config.language));
|
|
89
|
+
if (typeof board_maturity === 'boolean')
|
|
90
|
+
thunkApi.dispatch(handelBoardMaturity(board_maturity));
|
|
91
|
+
onVerifyConfigTokenSuccess === null || onVerifyConfigTokenSuccess === void 0 ? void 0 : onVerifyConfigTokenSuccess(config);
|
|
92
|
+
if (matureData === 'express' && maturity_1 !== matureData && typeof configInfo.onMaturityChanged === 'function') {
|
|
93
|
+
configInfo.onMaturityChanged(matureData);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
108
96
|
deviceInfo = {
|
|
109
97
|
app: {
|
|
110
|
-
language:
|
|
111
|
-
name:
|
|
112
|
-
identifier:
|
|
113
|
-
version:
|
|
98
|
+
language: configInfo.language || 'en',
|
|
99
|
+
name: configInfo.appInfo.name,
|
|
100
|
+
identifier: configInfo.appInfo.identifier || 'auth-connect',
|
|
101
|
+
version: configInfo.appInfo.version || '2.0.0'
|
|
114
102
|
},
|
|
115
103
|
browser: {
|
|
116
104
|
browser_id: visitorId,
|
|
@@ -136,19 +124,17 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
136
124
|
},
|
|
137
125
|
source: 'browser'
|
|
138
126
|
};
|
|
139
|
-
setAxiosGlobalHeaders(__assign(__assign(__assign({}, getRequestHeaders(deviceInfo)), { authorization: encryptString(publicKey), mdn: encryptString(params.mdn || window.location.origin), cu: window.location.href }), (
|
|
127
|
+
setAxiosGlobalHeaders(__assign(__assign(__assign({}, getRequestHeaders(deviceInfo)), { authorization: encryptString(configInfo.publicKey), mdn: encryptString(params.mdn || window.location.origin), cu: window.location.href }), (matureData && { maturity: matureData })));
|
|
140
128
|
isValidOperator = operator === 'valid';
|
|
141
129
|
countries = sortCountries(list);
|
|
142
|
-
countryCode =
|
|
143
|
-
if (maturity === 'express' && (merchant === null || merchant === void 0 ? void 0 : merchant.country_code))
|
|
144
|
-
countryCode = merchant === null || merchant === void 0 ? void 0 : merchant.country_code;
|
|
130
|
+
countryCode = configInfo.businessCountryCode;
|
|
145
131
|
isKWOrSA = isKW(countryCode) || isSA(countryCode);
|
|
146
132
|
if (!isKWOrSA)
|
|
147
133
|
countryCode = 'KW';
|
|
148
134
|
businessCountry = findCountryByIso2(countries, countryCode);
|
|
149
135
|
if (!businessCountry)
|
|
150
136
|
throw new Error('Business country not found, you have to pass a valid business country code in the lib config');
|
|
151
|
-
return [2, __assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, isValidOperator: isValidOperator, isMaturityExpress:
|
|
137
|
+
return [2, __assign(__assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (config && { boardMaturity: config.board_maturity })), (merchant && { merchant: merchant }))];
|
|
152
138
|
}
|
|
153
139
|
});
|
|
154
140
|
}); });
|
package/build/app/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThunkAction, Action } from '@reduxjs/toolkit';
|
|
2
|
-
export declare const store: import("@reduxjs/toolkit
|
|
2
|
+
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;
|
|
@@ -24,6 +24,6 @@ export declare const store: import("@reduxjs/toolkit/dist/configureStore").Toolk
|
|
|
24
24
|
brand: import("../features/app/brand/brandStore").BrandState;
|
|
25
25
|
connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
|
|
26
26
|
}, import("redux").AnyAction, undefined>]>>;
|
|
27
|
-
export type AppDispatch = typeof store.dispatch;
|
|
28
|
-
export type RootState = ReturnType<typeof store.getState>;
|
|
29
|
-
export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
27
|
+
export declare type AppDispatch = typeof store.dispatch;
|
|
28
|
+
export declare type RootState = ReturnType<typeof store.getState>;
|
|
29
|
+
export declare type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
@@ -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, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "
|
|
5
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "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" | "in" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
|
|
6
6
|
export default _default;
|
package/build/constants/app.d.ts
CHANGED
|
@@ -21,108 +21,36 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
21
21
|
notification: any;
|
|
22
22
|
};
|
|
23
23
|
token: string;
|
|
24
|
-
}, VerifyLeadTokenProps, {
|
|
25
|
-
state?: unknown;
|
|
26
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
27
|
-
extra?: unknown;
|
|
28
|
-
rejectValue?: unknown;
|
|
29
|
-
serializedErrorType?: unknown;
|
|
30
|
-
pendingMeta?: unknown;
|
|
31
|
-
fulfilledMeta?: unknown;
|
|
32
|
-
rejectedMeta?: unknown;
|
|
33
|
-
}>;
|
|
24
|
+
}, VerifyLeadTokenProps, {}>;
|
|
34
25
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
35
26
|
data: any;
|
|
36
|
-
}, void, {
|
|
37
|
-
state?: unknown;
|
|
38
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
39
|
-
extra?: unknown;
|
|
40
|
-
rejectValue?: unknown;
|
|
41
|
-
serializedErrorType?: unknown;
|
|
42
|
-
pendingMeta?: unknown;
|
|
43
|
-
fulfilledMeta?: unknown;
|
|
44
|
-
rejectedMeta?: unknown;
|
|
45
|
-
}>;
|
|
27
|
+
}, void, {}>;
|
|
46
28
|
export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
47
29
|
data: any;
|
|
48
30
|
formData: OTPFormValues;
|
|
49
|
-
}, OTPFormValues, {
|
|
50
|
-
state?: unknown;
|
|
51
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
52
|
-
extra?: unknown;
|
|
53
|
-
rejectValue?: unknown;
|
|
54
|
-
serializedErrorType?: unknown;
|
|
55
|
-
pendingMeta?: unknown;
|
|
56
|
-
fulfilledMeta?: unknown;
|
|
57
|
-
rejectedMeta?: unknown;
|
|
58
|
-
}>;
|
|
31
|
+
}, OTPFormValues, {}>;
|
|
59
32
|
export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
|
|
60
33
|
flows: any;
|
|
61
|
-
}, void, {
|
|
62
|
-
state?: unknown;
|
|
63
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
64
|
-
extra?: unknown;
|
|
65
|
-
rejectValue?: unknown;
|
|
66
|
-
serializedErrorType?: unknown;
|
|
67
|
-
pendingMeta?: unknown;
|
|
68
|
-
fulfilledMeta?: unknown;
|
|
69
|
-
rejectedMeta?: unknown;
|
|
70
|
-
}>;
|
|
34
|
+
}, void, {}>;
|
|
71
35
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
72
36
|
data: any;
|
|
73
|
-
}, string, {
|
|
74
|
-
state?: unknown;
|
|
75
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
76
|
-
extra?: unknown;
|
|
77
|
-
rejectValue?: unknown;
|
|
78
|
-
serializedErrorType?: unknown;
|
|
79
|
-
pendingMeta?: unknown;
|
|
80
|
-
fulfilledMeta?: unknown;
|
|
81
|
-
rejectedMeta?: unknown;
|
|
82
|
-
}>;
|
|
37
|
+
}, string, {}>;
|
|
83
38
|
export declare const createBankAccount: import("@reduxjs/toolkit").AsyncThunk<{
|
|
84
39
|
data: any;
|
|
85
40
|
formData: BankFormValues;
|
|
86
|
-
}, AsyncThunkParams<BankFormValues>, {
|
|
87
|
-
state?: unknown;
|
|
88
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
89
|
-
extra?: unknown;
|
|
90
|
-
rejectValue?: unknown;
|
|
91
|
-
serializedErrorType?: unknown;
|
|
92
|
-
pendingMeta?: unknown;
|
|
93
|
-
fulfilledMeta?: unknown;
|
|
94
|
-
rejectedMeta?: unknown;
|
|
95
|
-
}>;
|
|
41
|
+
}, AsyncThunkParams<BankFormValues>, {}>;
|
|
96
42
|
export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
|
|
97
43
|
data: any;
|
|
98
44
|
}, {
|
|
99
45
|
iban: string;
|
|
100
46
|
cancelToken: CancelToken;
|
|
101
47
|
onSuccess?: (() => void) | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
state?: unknown;
|
|
104
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
105
|
-
extra?: unknown;
|
|
106
|
-
rejectValue?: unknown;
|
|
107
|
-
serializedErrorType?: unknown;
|
|
108
|
-
pendingMeta?: unknown;
|
|
109
|
-
fulfilledMeta?: unknown;
|
|
110
|
-
rejectedMeta?: unknown;
|
|
111
|
-
}>;
|
|
48
|
+
}, {}>;
|
|
112
49
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
113
50
|
response: any;
|
|
114
51
|
formData: void;
|
|
115
|
-
} | undefined, void, {
|
|
116
|
-
|
|
117
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
118
|
-
extra?: unknown;
|
|
119
|
-
rejectValue?: unknown;
|
|
120
|
-
serializedErrorType?: unknown;
|
|
121
|
-
pendingMeta?: unknown;
|
|
122
|
-
fulfilledMeta?: unknown;
|
|
123
|
-
rejectedMeta?: unknown;
|
|
124
|
-
}>;
|
|
125
|
-
type VerifyData = {
|
|
52
|
+
} | undefined, void, {}>;
|
|
53
|
+
declare type VerifyData = {
|
|
126
54
|
token: string;
|
|
127
55
|
};
|
|
128
56
|
export interface BankData {
|
|
@@ -140,7 +68,7 @@ export declare const bankSlice: import("@reduxjs/toolkit").Slice<BankState, {
|
|
|
140
68
|
resetOTPScreen: (state: BankState) => void;
|
|
141
69
|
bankStatementUploadingStatus: (state: BankState, action: ActionState<boolean>) => void;
|
|
142
70
|
}, "bank/store">;
|
|
143
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
71
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, bankStatementUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
144
72
|
declare const _default: import("redux").Reducer<BankState, import("redux").AnyAction>;
|
|
145
73
|
export default _default;
|
|
146
74
|
export declare const bankSelector: (state: RootState) => BankState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (
|
|
27
|
+
while (_) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|