@tap-payments/auth-jsconnect 2.1.35-test → 2.1.37-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 +1 -0
- package/build/@types/app.js +1 -0
- package/build/api/brand.d.ts +1 -0
- package/build/api/brand.js +9 -1
- package/build/api/index.d.ts +2 -0
- package/build/api/lead.d.ts +1 -0
- package/build/api/lead.js +7 -0
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +3 -1
- package/build/app/settings.d.ts +7 -5
- package/build/app/settings.js +15 -6
- package/build/app/store.d.ts +2 -0
- package/build/components/Button/Button.js +1 -5
- package/build/components/Radio/Radio.js +1 -1
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/app.d.ts +14 -0
- package/build/constants/app.js +45 -0
- package/build/features/app/auth/authStore.js +2 -10
- package/build/features/app/bank/bankStore.d.ts +1 -5
- package/build/features/app/bank/bankStore.js +3 -3
- package/build/features/app/brand/brandStore.js +3 -3
- package/build/features/app/business/businessStore.js +6 -16
- package/build/features/app/connect/connectStore.js +1 -8
- package/build/features/app/connectExpress/connectExpressStore.d.ts +39 -0
- package/build/features/app/connectExpress/connectExpressStore.js +171 -0
- package/build/features/app/entity/entityStore.js +3 -3
- package/build/features/app/individual/individualStore.d.ts +2 -10
- package/build/features/app/individual/individualStore.js +6 -8
- package/build/features/app/password/passwordStore.d.ts +2 -10
- package/build/features/app/password/passwordStore.js +5 -5
- package/build/features/app/tax/taxStore.js +3 -3
- package/build/features/auth/screens/NID/TAC.js +1 -3
- package/build/features/bank/screens/BankDetails/validation.js +6 -26
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +9 -15
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +1 -3
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -3
- package/build/features/brand/screens/BrandActivities/TAC.js +1 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -3
- package/build/features/brand/screens/BrandInfo/Segments.js +6 -15
- package/build/features/brand/screens/BrandInfo/TeamSize.js +6 -15
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -3
- package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.js +1 -5
- package/build/features/business/screens/BusinessType/validation.js +2 -6
- package/build/features/business/screens/Customers/CustomerLocations.js +1 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +1 -3
- package/build/features/business/screens/Customers/RefundPolicy.js +1 -3
- package/build/features/business/screens/Customers/TransactionPolicy.js +1 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -3
- package/build/features/connect/screens/Individual/validation.js +2 -8
- package/build/features/connect/screens/Merchant/TAC.js +1 -3
- package/build/features/connectExpress/ConnectExpress.d.ts +10 -0
- package/build/features/connectExpress/ConnectExpress.js +134 -0
- package/build/features/connectExpress/index.d.ts +1 -0
- package/build/features/connectExpress/index.js +1 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.js +102 -0
- package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connectExpress/screens/CivilID/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CivilID/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/CivilID/validation.js +4 -0
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/connectExpress/screens/Mobile/Mobile.js +133 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +12 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +154 -0
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +8 -0
- package/build/features/connectExpress/screens/Mobile/Title.js +29 -0
- package/build/features/connectExpress/screens/Mobile/index.d.ts +3 -0
- package/build/features/connectExpress/screens/Mobile/index.js +2 -0
- package/build/features/connectExpress/screens/Mobile/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/Mobile/validation.js +28 -0
- package/build/features/connectExpress/screens/NID/DOB.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/DOB.js +47 -0
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/IDNumber.js +60 -0
- package/build/features/connectExpress/screens/NID/NID.d.ts +5 -0
- package/build/features/connectExpress/screens/NID/NID.js +94 -0
- package/build/features/connectExpress/screens/NID/index.d.ts +3 -0
- package/build/features/connectExpress/screens/NID/index.js +2 -0
- package/build/features/connectExpress/screens/NID/validation.d.ts +11 -0
- package/build/features/connectExpress/screens/NID/validation.js +9 -0
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +5 -0
- package/build/features/connectExpress/screens/OTP/OTP.js +94 -0
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/OTP/OTPInput.js +54 -0
- package/build/features/connectExpress/screens/OTP/index.d.ts +3 -0
- package/build/features/connectExpress/screens/OTP/index.js +2 -0
- package/build/features/connectExpress/screens/OTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/OTP/validation.js +4 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +95 -0
- package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/screens/EntityCapital/ActivityList.js +1 -1
- package/build/features/entity/screens/EntityCapital/validation.js +2 -6
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -3
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +27 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +1 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -6
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -3
- package/build/features/shared/Background/Background.js +1 -5
- package/build/features/shared/Button/Button.js +1 -3
- package/build/features/shared/Footer/Footer.js +1 -1
- package/build/features/shared/UploadMultipleFile/index.d.ts +0 -0
- package/build/features/shared/UploadMultipleFile/index.js +1 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -3
- package/build/hooks/useAppConfig.d.ts +2 -1
- package/build/hooks/useAppConfig.js +2 -2
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/hooks/useSetFromDefaultValues.js +2 -2
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -1
- package/build/utils/array.js +1 -3
- package/build/utils/common.d.ts +1 -1
- package/build/utils/common.js +1 -0
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
package/build/@types/app.js
CHANGED
|
@@ -17,6 +17,7 @@ export var BusinessType;
|
|
|
17
17
|
})(BusinessType || (BusinessType = {}));
|
|
18
18
|
export var FlowsTypes;
|
|
19
19
|
(function (FlowsTypes) {
|
|
20
|
+
FlowsTypes["CONNECT_EXPRESS"] = "connect_express";
|
|
20
21
|
FlowsTypes["CONNECT"] = "connect";
|
|
21
22
|
FlowsTypes["BANK"] = "bank";
|
|
22
23
|
FlowsTypes["BUSINESS"] = "business";
|
package/build/api/brand.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ declare const brandService: {
|
|
|
4
4
|
getBrandList: (data: BrandListBody) => Promise<any>;
|
|
5
5
|
updateBrandInfo: ({ id, ...data }: UpdateBrandBody) => Promise<any>;
|
|
6
6
|
updateBrandSales: ({ id, ...data }: UpdateSalesChannels) => void;
|
|
7
|
+
getBrandListByIndividualId: (id: string) => Promise<any>;
|
|
7
8
|
};
|
|
8
9
|
export { brandService };
|
package/build/api/brand.js
CHANGED
|
@@ -24,6 +24,13 @@ var getBrandList = function (data) {
|
|
|
24
24
|
data: data
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
+
var getBrandListByIndividualId = function (id) {
|
|
28
|
+
return httpClient({
|
|
29
|
+
method: 'post',
|
|
30
|
+
url: "".concat(ENDPOINT_PATHS.BRAND_LIST),
|
|
31
|
+
data: { individual_id: id }
|
|
32
|
+
});
|
|
33
|
+
};
|
|
27
34
|
var updateBrandInfo = function (_a) {
|
|
28
35
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
29
36
|
return httpClient({
|
|
@@ -44,6 +51,7 @@ var brandService = {
|
|
|
44
51
|
retrieveBrand: retrieveBrand,
|
|
45
52
|
getBrandList: getBrandList,
|
|
46
53
|
updateBrandInfo: updateBrandInfo,
|
|
47
|
-
updateBrandSales: updateBrandSales
|
|
54
|
+
updateBrandSales: updateBrandSales,
|
|
55
|
+
getBrandListByIndividualId: getBrandListByIndividualId
|
|
48
56
|
};
|
|
49
57
|
export { brandService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const API: {
|
|
|
34
34
|
createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
35
|
updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
|
|
36
36
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
|
+
getLeadById: (leadId: string) => Promise<any>;
|
|
37
38
|
verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
39
|
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
40
|
retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -117,6 +118,7 @@ declare const API: {
|
|
|
117
118
|
getBrandList: (data: BrandListBody) => Promise<any>;
|
|
118
119
|
updateBrandInfo: ({ id, ...data }: UpdateBrandBody) => Promise<any>;
|
|
119
120
|
updateBrandSales: ({ id, ...data }: import("./individual").UpdateSalesChannels) => void;
|
|
121
|
+
getBrandListByIndividualId: (id: string) => Promise<any>;
|
|
120
122
|
};
|
|
121
123
|
};
|
|
122
124
|
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthKitOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody };
|
package/build/api/lead.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ declare const leadService: {
|
|
|
88
88
|
createLead: (data: CreateLeadBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
89
89
|
updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
|
|
90
90
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
91
|
+
getLeadById: (leadId: string) => Promise<any>;
|
|
91
92
|
verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
92
93
|
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
93
94
|
retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
package/build/api/lead.js
CHANGED
|
@@ -25,6 +25,12 @@ var updateLead = function (_a) {
|
|
|
25
25
|
var retrieveLead = function (leadId) {
|
|
26
26
|
return instance.get("".concat(ENDPOINT_PATHS.LEAD, "/").concat(leadId));
|
|
27
27
|
};
|
|
28
|
+
var getLeadById = function (leadId) {
|
|
29
|
+
return httpClient({
|
|
30
|
+
method: 'get',
|
|
31
|
+
url: "".concat(ENDPOINT_PATHS.LEAD, "/").concat(leadId)
|
|
32
|
+
});
|
|
33
|
+
};
|
|
28
34
|
var verifyLeadToken = function (data, config) {
|
|
29
35
|
return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
|
|
30
36
|
};
|
|
@@ -44,6 +50,7 @@ var leadService = {
|
|
|
44
50
|
createLead: createLead,
|
|
45
51
|
updateLead: updateLead,
|
|
46
52
|
retrieveLead: retrieveLead,
|
|
53
|
+
getLeadById: getLeadById,
|
|
47
54
|
verifyLeadToken: verifyLeadToken,
|
|
48
55
|
verifyLeadOTP: verifyLeadOTP,
|
|
49
56
|
retrieveEntityList: retrieveEntityList,
|
|
@@ -10,5 +10,6 @@ declare const rootReducer: {
|
|
|
10
10
|
entity: import("redux").Reducer<import("../features/app/entity/entityStore").EntityState, import("redux").AnyAction>;
|
|
11
11
|
auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
|
|
12
12
|
brand: import("redux").Reducer<import("../features/app/brand/brandStore").BrandState, import("redux").AnyAction>;
|
|
13
|
+
connectExpress: import("redux").Reducer<import("../features/app/connectExpress/connectExpressStore").ConnectExpressState, import("redux").AnyAction>;
|
|
13
14
|
};
|
|
14
15
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -9,6 +9,7 @@ import signIn from '../features/app/signIn/signInStore';
|
|
|
9
9
|
import entity from '../features/app/entity/entityStore';
|
|
10
10
|
import auth from '../features/app/auth/authStore';
|
|
11
11
|
import brand from '../features/app/brand/brandStore';
|
|
12
|
+
import connectExpress from '../features/app/connectExpress/connectExpressStore';
|
|
12
13
|
var rootReducer = {
|
|
13
14
|
settings: settings,
|
|
14
15
|
connect: connect,
|
|
@@ -20,6 +21,7 @@ var rootReducer = {
|
|
|
20
21
|
signIn: signIn,
|
|
21
22
|
entity: entity,
|
|
22
23
|
auth: auth,
|
|
23
|
-
brand: brand
|
|
24
|
+
brand: brand,
|
|
25
|
+
connectExpress: connectExpress
|
|
24
26
|
};
|
|
25
27
|
export default rootReducer;
|
package/build/app/settings.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { RootState } from './store';
|
|
2
2
|
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode } from '../@types';
|
|
3
|
+
interface SettingParams {
|
|
4
|
+
disableCountries?: boolean;
|
|
5
|
+
disableLocale?: boolean;
|
|
6
|
+
mdn: string;
|
|
7
|
+
prepare?: () => Promise<void>;
|
|
8
|
+
}
|
|
3
9
|
export declare const fetchAppSettingsSync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
10
|
countries: CountryCode[];
|
|
5
11
|
businessCountry: CountryCode;
|
|
6
12
|
locale: any;
|
|
7
13
|
deviceInfo: DeviceInfo;
|
|
8
14
|
isValidOperator: boolean;
|
|
9
|
-
}, {
|
|
10
|
-
disableCountries?: boolean | undefined;
|
|
11
|
-
disableLocale?: boolean | undefined;
|
|
12
|
-
mdn: string;
|
|
13
|
-
}, {}>;
|
|
15
|
+
}, SettingParams, {}>;
|
|
14
16
|
export interface SettingsData {
|
|
15
17
|
skin: ThemeMode;
|
|
16
18
|
language: LanguageMode;
|
package/build/app/settings.js
CHANGED
|
@@ -48,19 +48,19 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, removeElement } from '../utils';
|
|
51
|
-
import {
|
|
51
|
+
import { DefaultDeviceInfo, LOCAL_STORAGE_KEYS, DIALOG_ID, BACKGROUND_ID } from '../constants';
|
|
52
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, disableCountries, disableLocale, _c, visitorId, _d, ip, latitude, longitude, locale, list, operatorData, deviceInfo, operatorStatus, isValidOperator, countries, businessCountry;
|
|
56
|
+
var settings, _a, appConfig, language, _b, client, device, os, disableCountries, disableLocale, prepare, _c, visitorId, _d, ip, latitude, longitude, locale, list, operatorData, deviceInfo, operatorStatus, isValidOperator, countries, businessCountry;
|
|
57
57
|
return __generator(this, function (_e) {
|
|
58
58
|
switch (_e.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
|
-
disableCountries = params.disableCountries, disableLocale = params.disableLocale;
|
|
63
|
+
disableCountries = params.disableCountries, disableLocale = params.disableLocale, prepare = params.prepare;
|
|
64
64
|
return [4, Promise.all([
|
|
65
65
|
getFingerPrint(),
|
|
66
66
|
API.locationService.getIP(),
|
|
@@ -113,7 +113,15 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
113
113
|
operatorStatus = _e.sent();
|
|
114
114
|
isValidOperator = operatorStatus === 'valid';
|
|
115
115
|
countries = sortCountries(list);
|
|
116
|
-
businessCountry = findCountryByIso2(countries, appConfig.businessCountryCode)
|
|
116
|
+
businessCountry = findCountryByIso2(countries, appConfig.businessCountryCode);
|
|
117
|
+
if (!(typeof prepare === 'function')) return [3, 4];
|
|
118
|
+
return [4, prepare()];
|
|
119
|
+
case 3:
|
|
120
|
+
_e.sent();
|
|
121
|
+
_e.label = 4;
|
|
122
|
+
case 4:
|
|
123
|
+
if (!businessCountry)
|
|
124
|
+
throw new Error('Business country not found, you have to pass a valid business country code in the lib config');
|
|
117
125
|
return [2, { countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, isValidOperator: isValidOperator }];
|
|
118
126
|
}
|
|
119
127
|
});
|
|
@@ -130,7 +138,7 @@ var initialState = {
|
|
|
130
138
|
activeScreen: {},
|
|
131
139
|
deviceInfo: DefaultDeviceInfo,
|
|
132
140
|
appConfig: {},
|
|
133
|
-
businessCountry:
|
|
141
|
+
businessCountry: {},
|
|
134
142
|
countries: [],
|
|
135
143
|
isValidOperator: false
|
|
136
144
|
}
|
|
@@ -228,7 +236,8 @@ export var settingsSlice = createSlice({
|
|
|
228
236
|
},
|
|
229
237
|
handleSetCountryByIso2: function (state, action) {
|
|
230
238
|
var country = findCountryByIso2(state.data.countries, action.payload);
|
|
231
|
-
|
|
239
|
+
if (country)
|
|
240
|
+
state.data.businessCountry = country;
|
|
232
241
|
}
|
|
233
242
|
},
|
|
234
243
|
extraReducers: function (builder) {
|
package/build/app/store.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
11
11
|
entity: import("../features/app/entity/entityStore").EntityState;
|
|
12
12
|
auth: import("../features/app/auth/authStore").AuthState;
|
|
13
13
|
brand: import("../features/app/brand/brandStore").BrandState;
|
|
14
|
+
connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
|
|
14
15
|
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
|
|
15
16
|
settings: import("./settings").SettingsState;
|
|
16
17
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
@@ -23,6 +24,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
23
24
|
entity: import("../features/app/entity/entityStore").EntityState;
|
|
24
25
|
auth: import("../features/app/auth/authStore").AuthState;
|
|
25
26
|
brand: import("../features/app/brand/brandStore").BrandState;
|
|
27
|
+
connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
|
|
26
28
|
}, import("redux").AnyAction, undefined>]>>;
|
|
27
29
|
export declare type AppDispatch = typeof store.dispatch;
|
|
28
30
|
export declare type RootState = ReturnType<typeof store.getState>;
|
|
@@ -74,11 +74,7 @@ var ButtonStyled = styled(Button, {
|
|
|
74
74
|
},
|
|
75
75
|
_b[theme.breakpoints.down('sm')] = {
|
|
76
76
|
'&:hover': {
|
|
77
|
-
backgroundColor: touched
|
|
78
|
-
? !!outLineColor
|
|
79
|
-
? outLineColor
|
|
80
|
-
: theme.palette.primary.main
|
|
81
|
-
: theme.palette.common.white,
|
|
77
|
+
backgroundColor: touched ? (!!outLineColor ? outLineColor : theme.palette.primary.main) : theme.palette.common.white,
|
|
82
78
|
color: touched ? theme.palette.common.white : !!outLineColor ? outLineColor : theme.palette.primary.main,
|
|
83
79
|
img: {
|
|
84
80
|
filter: touched ? 'brightness(0) invert(1)' : 'none'
|
|
@@ -26,6 +26,6 @@ var RadioStyled = styled(Radio)(function (_a) {
|
|
|
26
26
|
} }));
|
|
27
27
|
});
|
|
28
28
|
var RadioComponent = function (props) {
|
|
29
|
-
return
|
|
29
|
+
return _jsx(RadioStyled, __assign({ color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }, props));
|
|
30
30
|
};
|
|
31
31
|
export default React.memo(RadioComponent);
|
|
@@ -28,7 +28,7 @@ import Text from '../Text';
|
|
|
28
28
|
import { useLanguage } from '../../hooks';
|
|
29
29
|
var StyledTooltip = styled(function (_a) {
|
|
30
30
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
31
|
-
return
|
|
31
|
+
return _jsx(Tooltip, __assign({}, props, { classes: { popper: className } }));
|
|
32
32
|
})(function (_a) {
|
|
33
33
|
var _b;
|
|
34
34
|
var theme = _a.theme;
|
package/build/constants/app.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const EXTERNAL_LINKS: {
|
|
|
16
16
|
export declare const DIALOG_ID = "auth-js-connect-dialog";
|
|
17
17
|
export declare const BACKGROUND_ID = "auth-js-connect-background";
|
|
18
18
|
export declare const CONNECT_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
19
|
+
export declare const CONNECT_EXPRESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
19
20
|
export declare const BUSINESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
20
21
|
export declare const INDIVIDUAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
21
22
|
export declare const PASSWORD_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
@@ -88,6 +89,19 @@ export declare const CONNECT_STEP_NAMES: {
|
|
|
88
89
|
VERIFY_AUTH_PASSWORD: string;
|
|
89
90
|
CONNECT_SUCCESS: string;
|
|
90
91
|
};
|
|
92
|
+
export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
93
|
+
CREATE_AUTH_MOBILE: string;
|
|
94
|
+
CREATE_AUTH_CIVIL_ID: string;
|
|
95
|
+
VERIFY_AUTH_MOBILE: string;
|
|
96
|
+
CREATE_AUTH_NID: string;
|
|
97
|
+
VERIFY_AUTH_NID: string;
|
|
98
|
+
UPDATE_LEAD_INDIVIDUAL: string;
|
|
99
|
+
UPDATE_LEAD_BRAND: string;
|
|
100
|
+
UPDATE_BRAND_INFO: string;
|
|
101
|
+
CREATE_AUTH_PASSWORD: string;
|
|
102
|
+
VERIFY_AUTH_PASSWORD: string;
|
|
103
|
+
CONNECT_EXPRESS_SUCCESS: string;
|
|
104
|
+
};
|
|
91
105
|
export declare const SignIn_STEP_NAMES: {
|
|
92
106
|
CREATE_AUTH_MOBILE: string;
|
|
93
107
|
VERIFY_AUTH_MOBILE: string;
|
package/build/constants/app.js
CHANGED
|
@@ -65,6 +65,38 @@ export var CONNECT_SCREENS_NAVIGATION = [
|
|
|
65
65
|
order: 5
|
|
66
66
|
}
|
|
67
67
|
];
|
|
68
|
+
export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
69
|
+
{
|
|
70
|
+
name: 'CONNECT_EXPRESS_NID_STEP',
|
|
71
|
+
next: 'CONNECT_EXPRESS_OTP_STEP',
|
|
72
|
+
prev: 'CONNECT_EXPRESS_MOBILE_STEP',
|
|
73
|
+
order: 1
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'CONNECT_EXPRESS_CIVIL_ID_STEP',
|
|
77
|
+
next: 'CONNECT_EXPRESS_VERIFY_PACI_STEP',
|
|
78
|
+
prev: 'CONNECT_EXPRESS_MOBILE_STEP',
|
|
79
|
+
order: 1
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'CONNECT_EXPRESS_MOBILE_STEP',
|
|
83
|
+
next: 'CONNECT_EXPRESS_OTP_STEP',
|
|
84
|
+
prev: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_CIVIL_ID_STEP'],
|
|
85
|
+
order: 1
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'CONNECT_EXPRESS_VERIFY_PACI_STEP',
|
|
89
|
+
next: 'CONNECT_EXPRESS_INDIVIDUAL_STEP',
|
|
90
|
+
prev: 'CONNECT_EXPRESS_CIVIL_ID_STEP',
|
|
91
|
+
order: 2
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'CONNECT_EXPRESS_OTP_STEP',
|
|
95
|
+
next: '',
|
|
96
|
+
prev: ['CONNECT_EXPRESS_MOBILE_STEP', 'CONNECT_EXPRESS_NID_STEP'],
|
|
97
|
+
order: 2
|
|
98
|
+
}
|
|
99
|
+
];
|
|
68
100
|
export var BUSINESS_SCREENS_NAVIGATION = [
|
|
69
101
|
{
|
|
70
102
|
name: 'BUSINESS_VERIFY_STEP',
|
|
@@ -460,6 +492,19 @@ export var CONNECT_STEP_NAMES = {
|
|
|
460
492
|
VERIFY_AUTH_PASSWORD: 'connect_verify_auth_password',
|
|
461
493
|
CONNECT_SUCCESS: 'connect_completed'
|
|
462
494
|
};
|
|
495
|
+
export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
496
|
+
CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
|
|
497
|
+
CREATE_AUTH_CIVIL_ID: 'connect_express_create_auth_civil_id',
|
|
498
|
+
VERIFY_AUTH_MOBILE: 'connect_express_verify_auth_mobile',
|
|
499
|
+
CREATE_AUTH_NID: 'connect_express_create_auth_nid',
|
|
500
|
+
VERIFY_AUTH_NID: 'connect_express_verify_auth_nid',
|
|
501
|
+
UPDATE_LEAD_INDIVIDUAL: 'connect_express_update_lead_individual',
|
|
502
|
+
UPDATE_LEAD_BRAND: 'connect_express_update_lead_brand',
|
|
503
|
+
UPDATE_BRAND_INFO: 'connect_express_update_brand_info',
|
|
504
|
+
CREATE_AUTH_PASSWORD: 'connect_express_create_auth_password',
|
|
505
|
+
VERIFY_AUTH_PASSWORD: 'connect_express_verify_auth_password',
|
|
506
|
+
CONNECT_EXPRESS_SUCCESS: 'connect_express_completed'
|
|
507
|
+
};
|
|
463
508
|
export var SignIn_STEP_NAMES = {
|
|
464
509
|
CREATE_AUTH_MOBILE: 'signIn_create_auth_mobile',
|
|
465
510
|
VERIFY_AUTH_MOBILE: 'signIn_verify_auth_mobile',
|
|
@@ -107,11 +107,7 @@ export var createAuth = createAsyncThunk('authCreateAuth', function (params, thu
|
|
|
107
107
|
},
|
|
108
108
|
sign_in: false,
|
|
109
109
|
is_lead: false,
|
|
110
|
-
encryption_contract: [
|
|
111
|
-
'user_credentail.identification_id',
|
|
112
|
-
'user_credentail.identification_id_type',
|
|
113
|
-
'user_credentail.date_of_birth'
|
|
114
|
-
]
|
|
110
|
+
encryption_contract: ['user_credentail.identification_id', 'user_credentail.identification_id_type', 'user_credentail.date_of_birth']
|
|
115
111
|
};
|
|
116
112
|
return [4, API.authService.createAuthKitNID(requestBody)];
|
|
117
113
|
case 1:
|
|
@@ -146,11 +142,7 @@ export var resendOTP = createAsyncThunk('authResendOTP', function (_, thunkApi)
|
|
|
146
142
|
},
|
|
147
143
|
sign_in: false,
|
|
148
144
|
is_lead: false,
|
|
149
|
-
encryption_contract: [
|
|
150
|
-
'user_credentail.identification_id',
|
|
151
|
-
'user_credentail.identification_id_type',
|
|
152
|
-
'user_credentail.date_of_birth'
|
|
153
|
-
]
|
|
145
|
+
encryption_contract: ['user_credentail.identification_id', 'user_credentail.identification_id_type', 'user_credentail.date_of_birth']
|
|
154
146
|
};
|
|
155
147
|
return [4, API.authService.createAuthKitNID(requestBody)];
|
|
156
148
|
case 1:
|
|
@@ -12,11 +12,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
12
12
|
name: any;
|
|
13
13
|
contact: any;
|
|
14
14
|
business: any;
|
|
15
|
-
flows:
|
|
16
|
-
name: string;
|
|
17
|
-
status: string;
|
|
18
|
-
url: string;
|
|
19
|
-
}[];
|
|
15
|
+
flows: any;
|
|
20
16
|
};
|
|
21
17
|
token: string;
|
|
22
18
|
}, string, {}>;
|
|
@@ -50,7 +50,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
|
50
50
|
import API from '../../../api';
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
52
|
import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
53
|
-
import { BANK_STEP_NAMES
|
|
53
|
+
import { BANK_STEP_NAMES } from '../../../constants';
|
|
54
54
|
export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var payload, data, boardInfoData, boardData, board_id, countryIso2, info, hasBankCompleted;
|
|
56
56
|
var _a, _b, _c, _d;
|
|
@@ -102,7 +102,7 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (t
|
|
|
102
102
|
name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
|
|
103
103
|
contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
|
|
104
104
|
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
105
|
-
flows:
|
|
105
|
+
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
|
|
106
106
|
},
|
|
107
107
|
token: token
|
|
108
108
|
}];
|
|
@@ -278,7 +278,7 @@ export var updateBoardSuccess = createAsyncThunk('updateBoardBankSuccess', funct
|
|
|
278
278
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
279
279
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
280
280
|
thunkApi.dispatch(handleNextScreenStep());
|
|
281
|
-
return [2, { response: __assign(__assign({}, data), { flows:
|
|
281
|
+
return [2, { response: __assign(__assign({}, data), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }), formData: params }];
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
}); });
|
|
@@ -109,7 +109,7 @@ export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (
|
|
|
109
109
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
110
110
|
name: (_b = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _b === void 0 ? void 0 : _b.names,
|
|
111
111
|
contact: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.contact,
|
|
112
|
-
flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info
|
|
112
|
+
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
|
|
113
113
|
},
|
|
114
114
|
salesChannels: salesChannels,
|
|
115
115
|
segmentsList: segmentsList === null || segmentsList === void 0 ? void 0 : segmentsList.list,
|
|
@@ -187,7 +187,7 @@ export var verifyBrandLeadOTP = createAsyncThunk('verifyBrandLeadOTP', function
|
|
|
187
187
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
188
188
|
name: (_f = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _f === void 0 ? void 0 : _f.names,
|
|
189
189
|
contact: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.contact,
|
|
190
|
-
flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info
|
|
190
|
+
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
|
|
191
191
|
},
|
|
192
192
|
salesChannels: salesChannels,
|
|
193
193
|
segmentsList: segmentsList === null || segmentsList === void 0 ? void 0 : segmentsList.list,
|
|
@@ -394,7 +394,7 @@ export var updateBoardSuccess = createAsyncThunk('updateBoardBrandSuccess', func
|
|
|
394
394
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
395
395
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
396
396
|
thunkApi.dispatch(handleNextScreenStep());
|
|
397
|
-
return [2, { response: __assign(__assign({}, data), { flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info }), formData: params }];
|
|
397
|
+
return [2, { response: __assign(__assign({}, data), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }), formData: params }];
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
}); });
|
|
@@ -58,7 +58,7 @@ var _a;
|
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import API from '../../../api';
|
|
60
60
|
import { BusinessType, FlowsTypes } from '../../../@types';
|
|
61
|
-
import {
|
|
61
|
+
import { BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
|
|
62
62
|
import { convertNumbers2English, getEighteenYearsAgo, hasKey, sleep, isKW, isSA, dateFormat } from '../../../utils';
|
|
63
63
|
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
64
64
|
export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -158,7 +158,7 @@ export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', functio
|
|
|
158
158
|
_b.label = 18;
|
|
159
159
|
case 18: return [2, {
|
|
160
160
|
data: data,
|
|
161
|
-
leadData: __assign(__assign({}, leadData), { flows:
|
|
161
|
+
leadData: __assign(__assign({}, leadData), { flows: (boardData === null || boardData === void 0 ? void 0 : boardData.info) || [] }),
|
|
162
162
|
token: token,
|
|
163
163
|
brandData: brandData,
|
|
164
164
|
boardId: leadData === null || leadData === void 0 ? void 0 : leadData.board_id
|
|
@@ -249,7 +249,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
249
249
|
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
250
250
|
case 9:
|
|
251
251
|
boardResponse = _j.sent();
|
|
252
|
-
leadData = __assign(__assign({}, leadData), { flows:
|
|
252
|
+
leadData = __assign(__assign({}, leadData), { flows: (boardResponse === null || boardResponse === void 0 ? void 0 : boardResponse.info) || [] });
|
|
253
253
|
return [4, thunkApi.dispatch(retrieveBoardDetails(board_id))];
|
|
254
254
|
case 10:
|
|
255
255
|
_j.sent();
|
|
@@ -377,12 +377,7 @@ export var updateLeadIdentity = createAsyncThunk('updateLeadIdentity', function
|
|
|
377
377
|
},
|
|
378
378
|
date_of_birth: params.dob,
|
|
379
379
|
step_name: stepName,
|
|
380
|
-
encryption_contract: [
|
|
381
|
-
'identification.issued_country_code',
|
|
382
|
-
'identification.id',
|
|
383
|
-
'identification.type',
|
|
384
|
-
'date_of_birth'
|
|
385
|
-
]
|
|
380
|
+
encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
|
|
386
381
|
};
|
|
387
382
|
return [4, API.leadService.updateLead(requestBody)];
|
|
388
383
|
case 1:
|
|
@@ -411,12 +406,7 @@ export var resendOTPLeadIdentity = createAsyncThunk('resendOTPLeadIdentity', fun
|
|
|
411
406
|
},
|
|
412
407
|
date_of_birth: dob,
|
|
413
408
|
step_name: stepName,
|
|
414
|
-
encryption_contract: [
|
|
415
|
-
'identification.issued_country_code',
|
|
416
|
-
'identification.id',
|
|
417
|
-
'identification.type',
|
|
418
|
-
'date_of_birth'
|
|
419
|
-
]
|
|
409
|
+
encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
|
|
420
410
|
};
|
|
421
411
|
return [4, API.leadService.updateLead(requestBody)];
|
|
422
412
|
case 1:
|
|
@@ -711,7 +701,7 @@ export var updateLeadSuccess = createAsyncThunk('businessUpdateLeadSuccess', fun
|
|
|
711
701
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
712
702
|
thunkApi.dispatch(handleNextScreenStep());
|
|
713
703
|
return [2, {
|
|
714
|
-
response: __assign(__assign({}, data), { flows:
|
|
704
|
+
response: __assign(__assign({}, data), { flows: (boardResponse === null || boardResponse === void 0 ? void 0 : boardResponse.info) || [] }),
|
|
715
705
|
formData: params
|
|
716
706
|
}];
|
|
717
707
|
}
|
|
@@ -386,14 +386,7 @@ export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', funct
|
|
|
386
386
|
name: getIndividualName(params.name),
|
|
387
387
|
contact: __assign({ email: params.email }, (params.mobile && { phone: { country_code: phoneCountry, number: params.mobile } })),
|
|
388
388
|
step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_INDIVIDUAL,
|
|
389
|
-
encryption_contract: [
|
|
390
|
-
'name.first',
|
|
391
|
-
'name.middle',
|
|
392
|
-
'name.last',
|
|
393
|
-
'contact.email',
|
|
394
|
-
'contact.phone.country_code',
|
|
395
|
-
'contact.phone.number'
|
|
396
|
-
]
|
|
389
|
+
encryption_contract: ['name.first', 'name.middle', 'name.last', 'contact.email', 'contact.phone.country_code', 'contact.phone.number']
|
|
397
390
|
};
|
|
398
391
|
return [4, API.leadService.updateLead(payload)];
|
|
399
392
|
case 1:
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType } from '../../../@types';
|
|
3
|
+
export declare const getLeadByIdAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
4
|
+
export declare const getBrandListAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
5
|
+
interface ResponseData {
|
|
6
|
+
responseData?: Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
export interface ConnectExpressData {
|
|
9
|
+
isLeadIdPassed: boolean;
|
|
10
|
+
postURL: string;
|
|
11
|
+
mobileData: MobileFormValues;
|
|
12
|
+
nidData: NIDFormValues & {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
civilIdData: CivilFormValues;
|
|
16
|
+
otpData: OTPFormValues & {
|
|
17
|
+
authFor: AuthForType;
|
|
18
|
+
};
|
|
19
|
+
flowName: FlowsTypes;
|
|
20
|
+
}
|
|
21
|
+
export interface ConnectExpressState extends SharedState<ConnectExpressData & ResponseData> {
|
|
22
|
+
}
|
|
23
|
+
export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectExpressState, {
|
|
24
|
+
setIsLeadIdPassed: (state: ConnectExpressState, action: ActionState<boolean>) => void;
|
|
25
|
+
clearError: (state: ConnectExpressState) => void;
|
|
26
|
+
setError(state: ConnectExpressState, action: ActionState<string>): void;
|
|
27
|
+
setResponseData: (state: ConnectExpressState, action: ActionState<ResponseData['responseData']>) => void;
|
|
28
|
+
stopLoader: (state: ConnectExpressState) => void;
|
|
29
|
+
resetMobileScreen: (state: ConnectExpressState, action: ActionState<CountryCode>) => void;
|
|
30
|
+
resetNIDScreen: (state: ConnectExpressState) => void;
|
|
31
|
+
resetCivilScreen: (state: ConnectExpressState) => void;
|
|
32
|
+
resetOTPScreen: (state: ConnectExpressState) => void;
|
|
33
|
+
setPostUrl: (state: ConnectExpressState, action: ActionState<string>) => void;
|
|
34
|
+
resetStore: (state: ConnectExpressState) => void;
|
|
35
|
+
}, "connectExpress/store">;
|
|
36
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setIsLeadIdPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, setResponseData: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Record<string, any> | undefined, string>, setPostUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
37
|
+
declare const _default: import("redux").Reducer<ConnectExpressState, import("redux").AnyAction>;
|
|
38
|
+
export default _default;
|
|
39
|
+
export declare const connectExpressSelector: (state: RootState) => ConnectExpressState;
|