@tap-payments/auth-jsconnect 2.6.57-test → 2.6.60-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 +3 -1
- package/build/@types/app.js +1 -1
- package/build/api/account.d.ts +1 -0
- package/build/api/account.js +8 -1
- package/build/api/auth.d.ts +2 -0
- package/build/api/index.d.ts +4 -3
- package/build/api/lead.d.ts +3 -0
- package/build/api/operator.d.ts +3 -2
- package/build/api/operator.js +2 -2
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +2 -0
- package/build/app/settings.js +3 -2
- package/build/app/store.d.ts +2 -0
- package/build/assets/locales/ar.json +2 -1
- package/build/assets/locales/en.json +2 -1
- package/build/constants/app.d.ts +11 -0
- package/build/constants/app.js +54 -0
- package/build/features/app/auth/authStore.d.ts +189 -0
- package/build/features/app/auth/authStore.js +726 -0
- package/build/features/app/bank/bankStore.js +5 -4
- package/build/features/app/brand/brandStore.js +5 -4
- package/build/features/app/business/businessStore.js +37 -28
- package/build/features/app/connectExpress/connectExpressStore.js +3 -2
- package/build/features/app/entity/entityStore.js +5 -4
- package/build/features/app/individual/individualStore.js +5 -4
- package/build/features/app/tax/taxStore.js +5 -4
- package/build/features/auth/Auth.d.ts +9 -0
- package/build/features/auth/Auth.js +93 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +91 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.js +96 -0
- package/build/features/auth/screens/AuthenticationList/MerchantList.d.ts +10 -0
- package/build/features/auth/screens/AuthenticationList/MerchantList.js +107 -0
- package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/auth/screens/AuthenticationList/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/validation.d.ts +14 -0
- package/build/features/auth/screens/AuthenticationList/validation.js +8 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +105 -0
- package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/auth/screens/BusinessCountry/index.js +2 -0
- package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/auth/screens/CivilID/CivilID.js +88 -0
- package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
- package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
- package/build/features/auth/screens/CivilID/index.d.ts +3 -0
- package/build/features/auth/screens/CivilID/index.js +2 -0
- package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
- package/build/features/auth/screens/CivilID/validation.js +4 -0
- package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/auth/screens/Mobile/Mobile.js +108 -0
- package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
- package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
- package/build/features/auth/screens/Mobile/index.d.ts +3 -0
- package/build/features/auth/screens/Mobile/index.js +2 -0
- package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
- package/build/features/auth/screens/Mobile/validation.js +30 -0
- package/build/features/auth/screens/NID/DOB.d.ts +6 -0
- package/build/features/auth/screens/NID/DOB.js +47 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
- package/build/features/auth/screens/NID/IDNumber.js +55 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +92 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +11 -0
- package/build/features/auth/screens/NID/validation.js +11 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +88 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +57 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/auth/screens/VerifyPACI/index.js +2 -0
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -33
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -17
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +6 -33
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -17
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +2 -2
- package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +6 -33
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +40 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
- package/build/features/shared/Address/CountryList.d.ts +5 -21
- package/build/features/shared/Address/InputSelect.d.ts +5 -21
- package/build/features/shared/Background/Background.d.ts +2 -1
- package/build/features/shared/Background/Background.js +5 -5
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
- package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +3 -1
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +8 -1
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +3 -0
- package/build/utils/validation.js +2 -1
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -207,6 +207,7 @@ interface LibCallbacks {
|
|
|
207
207
|
onCreated?: (res: Record<string, any>) => void;
|
|
208
208
|
onBoardCompleted?: () => void;
|
|
209
209
|
onMaturityChanged?: (maturity: 'full' | 'express') => void;
|
|
210
|
+
storeBoardId?: (boardId: string) => void;
|
|
210
211
|
}
|
|
211
212
|
export interface LibConfig extends LibCallbacks {
|
|
212
213
|
publicKey: string;
|
|
@@ -303,6 +304,7 @@ export type BrandInfo = {
|
|
|
303
304
|
export declare enum FlowsTypes {
|
|
304
305
|
CONNECT_EXPRESS = "connect_express",
|
|
305
306
|
CONNECT = "connect",
|
|
307
|
+
AUTH = "auth",
|
|
306
308
|
BANK = "bank",
|
|
307
309
|
BUSINESS = "business",
|
|
308
310
|
INDIVIDUAL = "individual",
|
|
@@ -310,7 +312,6 @@ export declare enum FlowsTypes {
|
|
|
310
312
|
TAX = "tax",
|
|
311
313
|
ENTITY = "entity",
|
|
312
314
|
OTP = "otp",
|
|
313
|
-
AUTH = "auth",
|
|
314
315
|
BRAND = "brand",
|
|
315
316
|
BOARD = "board"
|
|
316
317
|
}
|
|
@@ -653,6 +654,7 @@ export type ConfigExpressTokenParams = {
|
|
|
653
654
|
platform_redirect_url: string;
|
|
654
655
|
data: Array<string>;
|
|
655
656
|
};
|
|
657
|
+
export type ConfigAuthTokenParams = ConfigExpressTokenParams;
|
|
656
658
|
export declare enum MerchantStatus {
|
|
657
659
|
DISABLED = "disabled",
|
|
658
660
|
ENABLED = "enabled"
|
package/build/@types/app.js
CHANGED
|
@@ -24,6 +24,7 @@ export var FlowsTypes;
|
|
|
24
24
|
(function (FlowsTypes) {
|
|
25
25
|
FlowsTypes["CONNECT_EXPRESS"] = "connect_express";
|
|
26
26
|
FlowsTypes["CONNECT"] = "connect";
|
|
27
|
+
FlowsTypes["AUTH"] = "auth";
|
|
27
28
|
FlowsTypes["BANK"] = "bank";
|
|
28
29
|
FlowsTypes["BUSINESS"] = "business";
|
|
29
30
|
FlowsTypes["INDIVIDUAL"] = "individual";
|
|
@@ -31,7 +32,6 @@ export var FlowsTypes;
|
|
|
31
32
|
FlowsTypes["TAX"] = "tax";
|
|
32
33
|
FlowsTypes["ENTITY"] = "entity";
|
|
33
34
|
FlowsTypes["OTP"] = "otp";
|
|
34
|
-
FlowsTypes["AUTH"] = "auth";
|
|
35
35
|
FlowsTypes["BRAND"] = "brand";
|
|
36
36
|
FlowsTypes["BOARD"] = "board";
|
|
37
37
|
})(FlowsTypes || (FlowsTypes = {}));
|
package/build/api/account.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ export type ExpressCreateAccountBody = {
|
|
|
15
15
|
declare const accountService: {
|
|
16
16
|
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
17
17
|
expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
|
|
18
|
+
checkAccountAvailability: (individualId: string) => Promise<any>;
|
|
18
19
|
};
|
|
19
20
|
export { accountService };
|
package/build/api/account.js
CHANGED
|
@@ -14,8 +14,15 @@ var expressCreateAccount = function (data) {
|
|
|
14
14
|
data: data
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
+
var checkAccountAvailability = function (individualId) {
|
|
18
|
+
return httpClient({
|
|
19
|
+
method: 'get',
|
|
20
|
+
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
|
|
21
|
+
});
|
|
22
|
+
};
|
|
17
23
|
var accountService = {
|
|
18
24
|
createAccount: createAccount,
|
|
19
|
-
expressCreateAccount: expressCreateAccount
|
|
25
|
+
expressCreateAccount: expressCreateAccount,
|
|
26
|
+
checkAccountAvailability: checkAccountAvailability
|
|
20
27
|
};
|
|
21
28
|
export { accountService };
|
package/build/api/auth.d.ts
CHANGED
package/build/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
|
|
2
|
-
import { ValidateOperatorBody,
|
|
2
|
+
import { ValidateOperatorBody, ConfirmBody } from './operator';
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
@@ -20,7 +20,7 @@ declare const API: {
|
|
|
20
20
|
};
|
|
21
21
|
operatorService: {
|
|
22
22
|
validateOperator: (body: ValidateOperatorBody) => Promise<any>;
|
|
23
|
-
|
|
23
|
+
confirm: (data: ConfirmBody) => Promise<any>;
|
|
24
24
|
};
|
|
25
25
|
countryService: {
|
|
26
26
|
getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
|
|
@@ -86,6 +86,7 @@ declare const API: {
|
|
|
86
86
|
accountService: {
|
|
87
87
|
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
88
88
|
expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
|
|
89
|
+
checkAccountAvailability: (individualId: string) => Promise<any>;
|
|
89
90
|
};
|
|
90
91
|
dataService: {
|
|
91
92
|
getChannelsOfServices: (data: {
|
|
@@ -173,6 +174,6 @@ declare const API: {
|
|
|
173
174
|
getInitialData: (body: InitBody) => Promise<any>;
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
|
-
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody,
|
|
177
|
+
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody };
|
|
177
178
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
178
179
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
package/build/api/operator.d.ts
CHANGED
|
@@ -6,16 +6,17 @@ export type ValidateOperatorBody = {
|
|
|
6
6
|
locale: string;
|
|
7
7
|
connect_pkey?: string;
|
|
8
8
|
};
|
|
9
|
-
export type
|
|
9
|
+
export type ConfirmBody = {
|
|
10
10
|
post_url: string;
|
|
11
11
|
authentication_id: string;
|
|
12
12
|
bi: string;
|
|
13
13
|
brand_id: string;
|
|
14
14
|
merchant_id: string;
|
|
15
15
|
entity_id: string;
|
|
16
|
+
data: Array<string>;
|
|
16
17
|
};
|
|
17
18
|
declare const operatorService: {
|
|
18
19
|
validateOperator: (body: ValidateOperatorBody) => Promise<any>;
|
|
19
|
-
|
|
20
|
+
confirm: (data: ConfirmBody) => Promise<any>;
|
|
20
21
|
};
|
|
21
22
|
export { operatorService };
|
package/build/api/operator.js
CHANGED
|
@@ -59,7 +59,7 @@ var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}); };
|
|
62
|
-
var
|
|
62
|
+
var confirm = function (data) {
|
|
63
63
|
return httpClient({
|
|
64
64
|
method: 'post',
|
|
65
65
|
url: "".concat(ENDPOINT_PATHS.CONNECT, "/confirm"),
|
|
@@ -68,6 +68,6 @@ var updateOperator = function (data) {
|
|
|
68
68
|
};
|
|
69
69
|
var operatorService = {
|
|
70
70
|
validateOperator: validateOperator,
|
|
71
|
-
|
|
71
|
+
confirm: confirm
|
|
72
72
|
};
|
|
73
73
|
export { operatorService };
|
|
@@ -10,6 +10,7 @@ declare const rootReducer: {
|
|
|
10
10
|
entity: import("redux").Reducer<import("../features/app/entity/entityStore").EntityState, import("redux").AnyAction>;
|
|
11
11
|
brand: import("redux").Reducer<import("../features/app/brand/brandStore").BrandState, import("redux").AnyAction>;
|
|
12
12
|
connectExpress: import("redux").Reducer<import("../features/app/connectExpress/connectExpressStore").ConnectExpressState, import("redux").AnyAction>;
|
|
13
|
+
auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
|
|
13
14
|
board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
|
|
14
15
|
};
|
|
15
16
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -10,6 +10,7 @@ import entity from '../features/app/entity/entityStore';
|
|
|
10
10
|
import brand from '../features/app/brand/brandStore';
|
|
11
11
|
import connectExpress from '../features/app/connectExpress/connectExpressStore';
|
|
12
12
|
import board from '../features/app/board/boardStore';
|
|
13
|
+
import auth from '../features/app/auth/authStore';
|
|
13
14
|
var rootReducer = {
|
|
14
15
|
settings: settings,
|
|
15
16
|
connect: connect,
|
|
@@ -22,6 +23,7 @@ var rootReducer = {
|
|
|
22
23
|
entity: entity,
|
|
23
24
|
brand: brand,
|
|
24
25
|
connectExpress: connectExpress,
|
|
26
|
+
auth: auth,
|
|
25
27
|
board: board
|
|
26
28
|
};
|
|
27
29
|
export default rootReducer;
|
package/build/app/settings.js
CHANGED
|
@@ -163,9 +163,10 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
|
|
|
163
163
|
bi: bi,
|
|
164
164
|
brand_id: brandId || '',
|
|
165
165
|
merchant_id: merchantId || '',
|
|
166
|
-
entity_id: entityId || ''
|
|
166
|
+
entity_id: entityId || '',
|
|
167
|
+
data: settings.data.appConfig.data || []
|
|
167
168
|
};
|
|
168
|
-
return [4, API.operatorService.
|
|
169
|
+
return [4, API.operatorService.confirm(body)];
|
|
169
170
|
case 1:
|
|
170
171
|
data = _d.sent();
|
|
171
172
|
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, data);
|
package/build/app/store.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const store: import("@reduxjs/toolkit/dist/configureStore").Toolk
|
|
|
11
11
|
entity: import("../features/app/entity/entityStore").EntityState;
|
|
12
12
|
brand: import("../features/app/brand/brandStore").BrandState;
|
|
13
13
|
connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
|
|
14
|
+
auth: import("../features/app/auth/authStore").AuthState;
|
|
14
15
|
board: import("../features/app/board/boardStore").BoardState;
|
|
15
16
|
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
|
|
16
17
|
settings: import("./settings").SettingsState;
|
|
@@ -24,6 +25,7 @@ export declare const store: import("@reduxjs/toolkit/dist/configureStore").Toolk
|
|
|
24
25
|
entity: import("../features/app/entity/entityStore").EntityState;
|
|
25
26
|
brand: import("../features/app/brand/brandStore").BrandState;
|
|
26
27
|
connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
|
|
28
|
+
auth: import("../features/app/auth/authStore").AuthState;
|
|
27
29
|
board: import("../features/app/board/boardStore").BoardState;
|
|
28
30
|
}, import("redux").AnyAction, undefined>]>>;
|
|
29
31
|
export type AppDispatch = typeof store.dispatch;
|
|
@@ -431,5 +431,6 @@
|
|
|
431
431
|
"close_and_complete_later": "اغلق الان و اكمل لاحقا",
|
|
432
432
|
"country_list_title": "الرجاء تحديد بلدك",
|
|
433
433
|
"Choose_any_country": "بحث عن البلد ...",
|
|
434
|
-
"operator_is_invalid": "المشغل غير مصرح له"
|
|
434
|
+
"operator_is_invalid": "المشغل غير مصرح له",
|
|
435
|
+
"account_not_available": "Account is not available"
|
|
435
436
|
}
|
|
@@ -461,5 +461,6 @@
|
|
|
461
461
|
"close_and_complete_later": "Close and Complete Later",
|
|
462
462
|
"country_list_title": "Please select your country",
|
|
463
463
|
"choose_any_country": "Search Country...",
|
|
464
|
-
"operator_is_invalid": "Operator is invalid"
|
|
464
|
+
"operator_is_invalid": "Operator is invalid",
|
|
465
|
+
"account_not_available": "Account is not available"
|
|
465
466
|
}
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ScreenStepNavigation, BusinessType } from '../@types';
|
|
2
|
+
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
|
|
3
|
+
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
2
4
|
export declare const CLIENT_ORIGIN: string;
|
|
3
5
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
|
4
6
|
export declare const BUSINESS_WEBSITE = "https://businesses.tap.company/";
|
|
@@ -7,6 +9,7 @@ export declare const LOCAL_STORAGE_KEYS: {
|
|
|
7
9
|
languageMode: string;
|
|
8
10
|
};
|
|
9
11
|
export declare const SCOPE_AUTH = "auth";
|
|
12
|
+
export declare const ACCOUNT_NOT_AVAILABLE = "account_not_available";
|
|
10
13
|
export declare const EXTERNAL_LINKS: {
|
|
11
14
|
TOS_EN: string;
|
|
12
15
|
TOS_AR: string;
|
|
@@ -19,6 +22,7 @@ export declare const DIALOG_ID = "auth-js-connect-dialog";
|
|
|
19
22
|
export declare const BACKGROUND_ID = "auth-js-connect-background";
|
|
20
23
|
export declare const CONNECT_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
21
24
|
export declare const CONNECT_EXPRESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
25
|
+
export declare const AUTH_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
22
26
|
export declare const BUSINESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
23
27
|
export declare const INDIVIDUAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
24
28
|
export declare const PASSWORD_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
@@ -92,6 +96,13 @@ export declare const CONNECT_STEP_NAMES: {
|
|
|
92
96
|
VERIFY_AUTH_PASSWORD: string;
|
|
93
97
|
CONNECT_SUCCESS: string;
|
|
94
98
|
};
|
|
99
|
+
export declare const AUTH_STEP_NAMES: {
|
|
100
|
+
CREATE_AUTH_MOBILE: string;
|
|
101
|
+
CREATE_AUTH_CIVIL_ID: string;
|
|
102
|
+
VERIFY_AUTH_MOBILE: string;
|
|
103
|
+
CREATE_AUTH_NID: string;
|
|
104
|
+
VERIFY_AUTH_NID: string;
|
|
105
|
+
};
|
|
95
106
|
export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
96
107
|
CREATE_AUTH_MOBILE: string;
|
|
97
108
|
VERIFY_AUTH_MOBILE: string;
|
package/build/constants/app.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BusinessType } from '../@types';
|
|
2
|
+
export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
|
|
3
|
+
export var CONNECT_PROD_URL = 'https://connect.tap.company';
|
|
2
4
|
export var CLIENT_ORIGIN = window.location.origin;
|
|
3
5
|
export var TAP_WEBSITE = 'https://www.tap.company/';
|
|
4
6
|
export var BUSINESS_WEBSITE = 'https://businesses.tap.company/';
|
|
@@ -7,6 +9,7 @@ export var LOCAL_STORAGE_KEYS = {
|
|
|
7
9
|
languageMode: 'languageMode'
|
|
8
10
|
};
|
|
9
11
|
export var SCOPE_AUTH = 'auth';
|
|
12
|
+
export var ACCOUNT_NOT_AVAILABLE = 'account_not_available';
|
|
10
13
|
export var EXTERNAL_LINKS = {
|
|
11
14
|
TOS_EN: '/en/terms-conditions',
|
|
12
15
|
TOS_AR: '/ar/terms-conditions',
|
|
@@ -199,6 +202,50 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
199
202
|
order: 8
|
|
200
203
|
}
|
|
201
204
|
];
|
|
205
|
+
export var AUTH_SCREENS_NAVIGATION = [
|
|
206
|
+
{
|
|
207
|
+
name: 'AUTH_NID_STEP',
|
|
208
|
+
next: 'AUTH_OTP_STEP',
|
|
209
|
+
prev: 'AUTH_MOBILE_STEP',
|
|
210
|
+
order: 1
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'AUTH_CIVIL_ID_STEP',
|
|
214
|
+
next: 'AUTH_VERIFY_PACI_STEP',
|
|
215
|
+
prev: 'AUTH_MOBILE_STEP',
|
|
216
|
+
order: 1
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'AUTH_MOBILE_STEP',
|
|
220
|
+
next: 'AUTH_OTP_STEP',
|
|
221
|
+
prev: ['AUTH_NID_STEP', 'AUTH_CIVIL_ID_STEP'],
|
|
222
|
+
order: 1
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'AUTH_BUSINESS_COUNTRY_STEP',
|
|
226
|
+
next: ['AUTH_NID_STEP', 'AUTH_MOBILE_STEP', 'AUTH_CIVIL_ID_STEP'],
|
|
227
|
+
prev: '',
|
|
228
|
+
order: 1
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: 'AUTH_OTP_STEP',
|
|
232
|
+
next: 'AUTH_AUTHENTICATION_LIST_STEP',
|
|
233
|
+
prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP'],
|
|
234
|
+
order: 2
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'AUTH_VERIFY_PACI_STEP',
|
|
238
|
+
next: 'AUTH_AUTHENTICATION_LIST_STEP',
|
|
239
|
+
prev: 'AUTH_CIVIL_ID_STEP',
|
|
240
|
+
order: 2
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'AUTH_AUTHENTICATION_LIST_STEP',
|
|
244
|
+
next: '',
|
|
245
|
+
prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP', 'AUTH_CIVIL_ID_STEP'],
|
|
246
|
+
order: 3
|
|
247
|
+
}
|
|
248
|
+
];
|
|
202
249
|
export var BUSINESS_SCREENS_NAVIGATION = [
|
|
203
250
|
{
|
|
204
251
|
name: 'BUSINESS_VERIFY_STEP',
|
|
@@ -662,6 +709,13 @@ export var CONNECT_STEP_NAMES = {
|
|
|
662
709
|
VERIFY_AUTH_PASSWORD: 'connect_verify_auth_password',
|
|
663
710
|
CONNECT_SUCCESS: 'connect_completed'
|
|
664
711
|
};
|
|
712
|
+
export var AUTH_STEP_NAMES = {
|
|
713
|
+
CREATE_AUTH_MOBILE: 'auth_create_auth_mobile',
|
|
714
|
+
CREATE_AUTH_CIVIL_ID: 'auth_create_auth_civil_id',
|
|
715
|
+
VERIFY_AUTH_MOBILE: 'auth_verify_auth_mobile',
|
|
716
|
+
CREATE_AUTH_NID: 'auth_create_auth_nid',
|
|
717
|
+
VERIFY_AUTH_NID: 'auth_verify_auth_nid'
|
|
718
|
+
};
|
|
665
719
|
export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
666
720
|
CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
|
|
667
721
|
VERIFY_AUTH_MOBILE: 'connect_express_verify_auth_mobile',
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { ActionState, AuthForType, AuthenticationListFormValues, CivilFormValues, CountryCode, FlowsTypes, MobileFormValues, NIDFormValues, OTPFormValues, SharedState } from '../../../@types';
|
|
3
|
+
export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
4
|
+
state?: unknown;
|
|
5
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
6
|
+
extra?: unknown;
|
|
7
|
+
rejectValue?: unknown;
|
|
8
|
+
serializedErrorType?: unknown;
|
|
9
|
+
pendingMeta?: unknown;
|
|
10
|
+
fulfilledMeta?: unknown;
|
|
11
|
+
rejectedMeta?: unknown;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
14
|
+
data: any;
|
|
15
|
+
countryCode: CountryCode;
|
|
16
|
+
}, string, {
|
|
17
|
+
state?: unknown;
|
|
18
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
19
|
+
extra?: unknown;
|
|
20
|
+
rejectValue?: unknown;
|
|
21
|
+
serializedErrorType?: unknown;
|
|
22
|
+
pendingMeta?: unknown;
|
|
23
|
+
fulfilledMeta?: unknown;
|
|
24
|
+
rejectedMeta?: unknown;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
27
|
+
response: any;
|
|
28
|
+
formData: MobileFormValues;
|
|
29
|
+
}, MobileFormValues, {
|
|
30
|
+
state?: unknown;
|
|
31
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
32
|
+
extra?: unknown;
|
|
33
|
+
rejectValue?: unknown;
|
|
34
|
+
serializedErrorType?: unknown;
|
|
35
|
+
pendingMeta?: unknown;
|
|
36
|
+
fulfilledMeta?: unknown;
|
|
37
|
+
rejectedMeta?: unknown;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
40
|
+
response: any;
|
|
41
|
+
formData: MobileFormValues;
|
|
42
|
+
}, MobileFormValues, {
|
|
43
|
+
state?: unknown;
|
|
44
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
45
|
+
extra?: unknown;
|
|
46
|
+
rejectValue?: unknown;
|
|
47
|
+
serializedErrorType?: unknown;
|
|
48
|
+
pendingMeta?: unknown;
|
|
49
|
+
fulfilledMeta?: unknown;
|
|
50
|
+
rejectedMeta?: unknown;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<{
|
|
53
|
+
data: any;
|
|
54
|
+
brandList: any;
|
|
55
|
+
entityList: any;
|
|
56
|
+
}, OTPFormValues, {
|
|
57
|
+
state?: unknown;
|
|
58
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
59
|
+
extra?: unknown;
|
|
60
|
+
rejectValue?: unknown;
|
|
61
|
+
serializedErrorType?: unknown;
|
|
62
|
+
pendingMeta?: unknown;
|
|
63
|
+
fulfilledMeta?: unknown;
|
|
64
|
+
rejectedMeta?: unknown;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
67
|
+
response: any;
|
|
68
|
+
formData: NIDFormValues;
|
|
69
|
+
}, NIDFormValues, {
|
|
70
|
+
state?: unknown;
|
|
71
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
72
|
+
extra?: unknown;
|
|
73
|
+
rejectValue?: unknown;
|
|
74
|
+
serializedErrorType?: unknown;
|
|
75
|
+
pendingMeta?: unknown;
|
|
76
|
+
fulfilledMeta?: unknown;
|
|
77
|
+
rejectedMeta?: unknown;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const resendNIDAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
80
|
+
response: any;
|
|
81
|
+
formData: NIDFormValues;
|
|
82
|
+
}, NIDFormValues, {
|
|
83
|
+
state?: unknown;
|
|
84
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
85
|
+
extra?: unknown;
|
|
86
|
+
rejectValue?: unknown;
|
|
87
|
+
serializedErrorType?: unknown;
|
|
88
|
+
pendingMeta?: unknown;
|
|
89
|
+
fulfilledMeta?: unknown;
|
|
90
|
+
rejectedMeta?: unknown;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const verifyNIDOtp: import("@reduxjs/toolkit").AsyncThunk<{
|
|
93
|
+
data: any;
|
|
94
|
+
brandList: any;
|
|
95
|
+
entityList: any;
|
|
96
|
+
}, OTPFormValues, {
|
|
97
|
+
state?: unknown;
|
|
98
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
99
|
+
extra?: unknown;
|
|
100
|
+
rejectValue?: unknown;
|
|
101
|
+
serializedErrorType?: unknown;
|
|
102
|
+
pendingMeta?: unknown;
|
|
103
|
+
fulfilledMeta?: unknown;
|
|
104
|
+
rejectedMeta?: unknown;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
107
|
+
response: any;
|
|
108
|
+
formData: CivilFormValues;
|
|
109
|
+
}, CivilFormValues, {
|
|
110
|
+
state?: unknown;
|
|
111
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
112
|
+
extra?: unknown;
|
|
113
|
+
rejectValue?: unknown;
|
|
114
|
+
serializedErrorType?: unknown;
|
|
115
|
+
pendingMeta?: unknown;
|
|
116
|
+
fulfilledMeta?: unknown;
|
|
117
|
+
rejectedMeta?: unknown;
|
|
118
|
+
}>;
|
|
119
|
+
interface verifyPACIParams {
|
|
120
|
+
onSuccess: () => void;
|
|
121
|
+
}
|
|
122
|
+
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
123
|
+
data: any;
|
|
124
|
+
brandList: any;
|
|
125
|
+
entityList: any;
|
|
126
|
+
}, verifyPACIParams, {
|
|
127
|
+
state?: unknown;
|
|
128
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
129
|
+
extra?: unknown;
|
|
130
|
+
rejectValue?: unknown;
|
|
131
|
+
serializedErrorType?: unknown;
|
|
132
|
+
pendingMeta?: unknown;
|
|
133
|
+
fulfilledMeta?: unknown;
|
|
134
|
+
rejectedMeta?: unknown;
|
|
135
|
+
}>;
|
|
136
|
+
export declare const getMerchantList: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
137
|
+
state?: unknown;
|
|
138
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
139
|
+
extra?: unknown;
|
|
140
|
+
rejectValue?: unknown;
|
|
141
|
+
serializedErrorType?: unknown;
|
|
142
|
+
pendingMeta?: unknown;
|
|
143
|
+
fulfilledMeta?: unknown;
|
|
144
|
+
rejectedMeta?: unknown;
|
|
145
|
+
}>;
|
|
146
|
+
export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<void, AuthenticationListFormValues & {
|
|
147
|
+
authId?: string | undefined;
|
|
148
|
+
}, {
|
|
149
|
+
state?: unknown;
|
|
150
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
151
|
+
extra?: unknown;
|
|
152
|
+
rejectValue?: unknown;
|
|
153
|
+
serializedErrorType?: unknown;
|
|
154
|
+
pendingMeta?: unknown;
|
|
155
|
+
fulfilledMeta?: unknown;
|
|
156
|
+
rejectedMeta?: unknown;
|
|
157
|
+
}>;
|
|
158
|
+
interface ResponseData {
|
|
159
|
+
responseData?: Record<string, any>;
|
|
160
|
+
}
|
|
161
|
+
export interface authData {
|
|
162
|
+
mobileData: MobileFormValues;
|
|
163
|
+
nidData: NIDFormValues;
|
|
164
|
+
civilIdData: CivilFormValues;
|
|
165
|
+
otpData: OTPFormValues & {
|
|
166
|
+
authFor: AuthForType;
|
|
167
|
+
};
|
|
168
|
+
leadId?: string;
|
|
169
|
+
isStartFromBusinessCountry?: boolean;
|
|
170
|
+
flowName: FlowsTypes;
|
|
171
|
+
authenticationData: AuthenticationListFormValues;
|
|
172
|
+
}
|
|
173
|
+
export interface AuthState extends SharedState<authData & ResponseData> {
|
|
174
|
+
customLoading?: boolean;
|
|
175
|
+
merchantLoading?: boolean;
|
|
176
|
+
terminalLoading?: boolean;
|
|
177
|
+
}
|
|
178
|
+
export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
179
|
+
setLeadId(state: AuthState, action: ActionState<string>): void;
|
|
180
|
+
setMobileCountryCode: (state: AuthState, action: ActionState<CountryCode>) => void;
|
|
181
|
+
clearError: (state: AuthState) => void;
|
|
182
|
+
storeIsStartFromBusinessCountry: (state: AuthState, action: ActionState<boolean>) => void;
|
|
183
|
+
resetStore: (state: AuthState) => void;
|
|
184
|
+
resetOTPValue: (state: AuthState) => void;
|
|
185
|
+
}, "auth/store">;
|
|
186
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/clearError">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetStore">, setMobileCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "auth/store/setMobileCountryCode">, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/store/setLeadId">, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetOTPValue">, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/store/storeIsStartFromBusinessCountry">;
|
|
187
|
+
declare const _default: import("redux").Reducer<AuthState, import("redux").AnyAction>;
|
|
188
|
+
export default _default;
|
|
189
|
+
export declare const authSelector: (state: RootState) => AuthState;
|