@tap-payments/auth-jsconnect 1.1.6-test → 1.1.7-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/README.md +2 -2
- package/build/@types/app.d.ts +2 -1
- package/build/@types/form.d.ts +3 -0
- package/build/@types/redux.d.ts +0 -1
- package/build/api/account.d.ts +1 -2
- package/build/api/account.js +7 -3
- package/build/api/axios.d.ts +1 -0
- package/build/api/axios.js +3 -0
- package/build/api/board.d.ts +25 -0
- package/build/api/board.js +49 -0
- package/build/api/brand.d.ts +7 -0
- package/build/api/brand.js +40 -0
- package/build/api/entity.js +2 -2
- package/build/api/index.d.ts +21 -7
- package/build/api/index.js +9 -3
- package/build/api/individual.d.ts +25 -2
- package/build/api/individual.js +1 -5
- package/build/api/lead.d.ts +1 -5
- package/build/api/lead.js +10 -5
- package/build/api/user.d.ts +8 -0
- package/build/api/user.js +12 -0
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +3 -1
- 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/components/AnimationFlow/Loader.js +17 -9
- package/build/components/FileInput/DragAndDrop.js +1 -1
- package/build/constants/api.d.ts +4 -1
- package/build/constants/api.js +14 -8
- package/build/constants/app.d.ts +10 -1
- package/build/constants/app.js +35 -1
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +2 -1
- package/build/features/app/bank/bankStore.d.ts +3 -2
- package/build/features/app/bank/bankStore.js +45 -36
- package/build/features/app/business/businessStore.d.ts +6 -3
- package/build/features/app/business/businessStore.js +203 -125
- package/build/features/app/connect/connectStore.d.ts +2 -1
- package/build/features/app/connect/connectStore.js +84 -62
- package/build/features/app/individual/individualStore.d.ts +3 -10
- package/build/features/app/individual/individualStore.js +69 -93
- package/build/features/app/password/passwordStore.d.ts +7 -5
- package/build/features/app/password/passwordStore.js +70 -54
- package/build/features/app/signIn/signInStore.d.ts +33 -0
- package/build/features/app/signIn/signInStore.js +390 -0
- package/build/features/app/tax/taxStore.d.ts +2 -1
- package/build/features/app/tax/taxStore.js +44 -39
- package/build/features/bank/screens/Success/Success.js +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/connect/screens/Merchant/BrandName.js +2 -6
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +22 -0
- package/build/features/individual/screens/Success/Success.js +2 -2
- package/build/features/password/Password.js +2 -2
- package/build/features/password/screens/Success/Success.js +2 -2
- package/build/features/shared/UploadFile/UploadFile.js +8 -7
- package/build/features/signIn/SignIn.d.ts +7 -0
- package/build/features/signIn/SignIn.js +49 -0
- package/build/features/signIn/index.d.ts +1 -0
- package/build/features/signIn/index.js +1 -0
- package/build/features/signIn/screens/Email/Email.d.ts +5 -0
- package/build/features/signIn/screens/Email/Email.js +95 -0
- package/build/features/signIn/screens/Email/EmailField.d.ts +5 -0
- package/build/features/signIn/screens/Email/EmailField.js +55 -0
- package/build/features/signIn/screens/Email/index.d.ts +3 -0
- package/build/features/signIn/screens/Email/index.js +2 -0
- package/build/features/signIn/screens/Email/validation.d.ts +8 -0
- package/build/features/signIn/screens/Email/validation.js +5 -0
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/signIn/screens/Mobile/Mobile.js +106 -0
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +11 -0
- package/build/features/signIn/screens/Mobile/MobileNumber.js +151 -0
- package/build/features/signIn/screens/Mobile/index.d.ts +3 -0
- package/build/features/signIn/screens/Mobile/index.js +2 -0
- package/build/features/signIn/screens/Mobile/validation.d.ts +8 -0
- package/build/features/signIn/screens/Mobile/validation.js +28 -0
- package/build/features/signIn/screens/OTP/OTP.d.ts +5 -0
- package/build/features/signIn/screens/OTP/OTP.js +80 -0
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/signIn/screens/OTP/OTPInput.js +53 -0
- package/build/features/signIn/screens/OTP/index.d.ts +3 -0
- package/build/features/signIn/screens/OTP/index.js +2 -0
- package/build/features/signIn/screens/OTP/validation.d.ts +8 -0
- package/build/features/signIn/screens/OTP/validation.js +4 -0
- package/build/features/signIn/screens/Password/Password.d.ts +5 -0
- package/build/features/signIn/screens/Password/Password.js +54 -0
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +5 -0
- package/build/features/signIn/screens/Password/PasswordInput.js +28 -0
- package/build/features/signIn/screens/Password/index.d.ts +3 -0
- package/build/features/signIn/screens/Password/index.js +2 -0
- package/build/features/signIn/screens/Password/validation.d.ts +8 -0
- package/build/features/signIn/screens/Password/validation.js +4 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/index.css +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +5 -2
- package/build/utils/string.d.ts +3 -1
- package/build/utils/string.js +11 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ const App = () => {
|
|
|
77
77
|
<meta charset="utf-8" />
|
|
78
78
|
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
|
|
79
79
|
<title>Auth-JsConnect</title>
|
|
80
|
-
<script src="https://auth-jsconnect.b-cdn.net/build-
|
|
81
|
-
<link href="https://auth-jsconnect.b-cdn.net/build-
|
|
80
|
+
<script src="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.js"></script>
|
|
81
|
+
<link href="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.css" rel="stylesheet" />
|
|
82
82
|
</head>
|
|
83
83
|
<body>
|
|
84
84
|
<div id="root"></div>
|
package/build/@types/app.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { AxiosRequestHeaders } from 'axios';
|
|
2
3
|
import { LanguageMode } from './theme';
|
|
3
4
|
export interface CountryCode {
|
|
4
5
|
created: number;
|
|
@@ -103,7 +104,7 @@ export interface AppInfo {
|
|
|
103
104
|
version?: string;
|
|
104
105
|
}
|
|
105
106
|
interface LibCallbacks {
|
|
106
|
-
onFlowCompleted: (res: object) => void;
|
|
107
|
+
onFlowCompleted: (res: object, headers?: AxiosRequestHeaders) => void;
|
|
107
108
|
onError: (err: any) => void;
|
|
108
109
|
onStepCompleted?: (name: string, info: any) => void;
|
|
109
110
|
onReady?: () => void;
|
package/build/@types/form.d.ts
CHANGED
package/build/@types/redux.d.ts
CHANGED
package/build/api/account.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
1
|
export declare type CreateAccountBody = {
|
|
3
2
|
lead_id: string;
|
|
4
3
|
notify: {
|
|
@@ -10,6 +9,6 @@ export declare type CreateAccountBody = {
|
|
|
10
9
|
step_name: string;
|
|
11
10
|
};
|
|
12
11
|
declare const accountService: {
|
|
13
|
-
createAccount: (data: CreateAccountBody
|
|
12
|
+
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
14
13
|
};
|
|
15
14
|
export { accountService };
|
package/build/api/account.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { httpClient } from './axios';
|
|
2
2
|
import { ENDPOINT_PATHS } from '../constants';
|
|
3
|
-
var createAccount = function (data
|
|
4
|
-
return
|
|
3
|
+
var createAccount = function (data) {
|
|
4
|
+
return httpClient({
|
|
5
|
+
method: 'post',
|
|
6
|
+
url: ENDPOINT_PATHS.CREATE_ACCOUNT,
|
|
7
|
+
data: data
|
|
8
|
+
});
|
|
5
9
|
};
|
|
6
10
|
var accountService = {
|
|
7
11
|
createAccount: createAccount
|
package/build/api/axios.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
2
2
|
declare const instance: import("axios").AxiosInstance;
|
|
3
3
|
export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
|
|
4
4
|
export declare const removeAxiosGlobalHeaders: (arr: Array<string>) => void;
|
|
5
|
+
export declare const getAxiosHeaders: () => import("axios").AxiosRequestHeaders;
|
|
5
6
|
export declare const httpClient: (config: AxiosRequestConfig) => Promise<any>;
|
|
6
7
|
export default instance;
|
package/build/api/axios.js
CHANGED
|
@@ -78,6 +78,9 @@ export var removeAxiosGlobalHeaders = function (arr) {
|
|
|
78
78
|
delete axios.defaults.headers.common[key];
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
+
export var getAxiosHeaders = function () {
|
|
82
|
+
return instance.defaults.headers.common;
|
|
83
|
+
};
|
|
81
84
|
export var httpClient = function (config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
85
|
var data, _a, description, error, err_1, response, data, _b, description, error;
|
|
83
86
|
return __generator(this, function (_c) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare type UpdateBoardBody = {
|
|
2
|
+
id?: string;
|
|
3
|
+
infoId?: string;
|
|
4
|
+
step_name: string;
|
|
5
|
+
lang: string;
|
|
6
|
+
encryption_contract?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type RetrieveBoardInfoBody = {
|
|
9
|
+
id: string;
|
|
10
|
+
infoId: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type UpdateBoardInfoBody = {
|
|
13
|
+
id: string;
|
|
14
|
+
infoId: string;
|
|
15
|
+
step_name: string;
|
|
16
|
+
lang: string;
|
|
17
|
+
encryption_contract?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const boardService: {
|
|
20
|
+
retrieveBoard: (id: string) => Promise<any>;
|
|
21
|
+
updateBoard: ({ id, ...data }: UpdateBoardBody) => Promise<any>;
|
|
22
|
+
retrieveBoardInfo: ({ id, infoId }: RetrieveBoardInfoBody) => Promise<any>;
|
|
23
|
+
updateBoardInfo: ({ id, infoId, ...data }: UpdateBoardInfoBody) => Promise<any>;
|
|
24
|
+
};
|
|
25
|
+
export { boardService };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
13
|
+
import { httpClient } from './axios';
|
|
14
|
+
var retrieveBoardInfo = function (_a) {
|
|
15
|
+
var id = _a.id, infoId = _a.infoId;
|
|
16
|
+
return httpClient({
|
|
17
|
+
method: 'get',
|
|
18
|
+
url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id, "/info/collect/").concat(infoId)
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var retrieveBoard = function (id) {
|
|
22
|
+
return httpClient({
|
|
23
|
+
method: 'get',
|
|
24
|
+
url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id)
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
var updateBoard = function (_a) {
|
|
28
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
29
|
+
return httpClient({
|
|
30
|
+
method: 'put',
|
|
31
|
+
url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id),
|
|
32
|
+
data: data
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var updateBoardInfo = function (_a) {
|
|
36
|
+
var id = _a.id, infoId = _a.infoId, data = __rest(_a, ["id", "infoId"]);
|
|
37
|
+
return httpClient({
|
|
38
|
+
method: 'put',
|
|
39
|
+
url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id, "/info/collect/").concat(infoId),
|
|
40
|
+
data: data
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var boardService = {
|
|
44
|
+
retrieveBoard: retrieveBoard,
|
|
45
|
+
updateBoard: updateBoard,
|
|
46
|
+
retrieveBoardInfo: retrieveBoardInfo,
|
|
47
|
+
updateBoardInfo: updateBoardInfo
|
|
48
|
+
};
|
|
49
|
+
export { boardService };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BrandListBody, UpdateBrandBody } from '../api/individual';
|
|
2
|
+
declare const brandService: {
|
|
3
|
+
retrieveBrand: (id: string) => Promise<any>;
|
|
4
|
+
getBrandList: (data: BrandListBody) => Promise<any>;
|
|
5
|
+
updateBrandInfo: ({ id, ...data }: UpdateBrandBody) => Promise<any>;
|
|
6
|
+
};
|
|
7
|
+
export { brandService };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { httpClient } from './axios';
|
|
13
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
14
|
+
var retrieveBrand = function (id) {
|
|
15
|
+
return httpClient({
|
|
16
|
+
method: 'get',
|
|
17
|
+
url: "".concat(ENDPOINT_PATHS.BRAND, "/").concat(id)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var getBrandList = function (data) {
|
|
21
|
+
return httpClient({
|
|
22
|
+
method: 'post',
|
|
23
|
+
url: "".concat(ENDPOINT_PATHS.BRAND_LIST),
|
|
24
|
+
data: data
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
var updateBrandInfo = function (_a) {
|
|
28
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
29
|
+
return httpClient({
|
|
30
|
+
method: 'put',
|
|
31
|
+
url: "".concat(ENDPOINT_PATHS.BRAND, "/").concat(id),
|
|
32
|
+
data: data
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var brandService = {
|
|
36
|
+
retrieveBrand: retrieveBrand,
|
|
37
|
+
getBrandList: getBrandList,
|
|
38
|
+
updateBrandInfo: updateBrandInfo
|
|
39
|
+
};
|
|
40
|
+
export { brandService };
|
package/build/api/entity.js
CHANGED
|
@@ -20,10 +20,10 @@ var createEntityInfo = function (_a, config) {
|
|
|
20
20
|
};
|
|
21
21
|
var updateEntityInfo = function (_a, config) {
|
|
22
22
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
23
|
-
return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id
|
|
23
|
+
return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id), data, config);
|
|
24
24
|
};
|
|
25
25
|
var createBankAccount = function (data, config) {
|
|
26
|
-
return instance.
|
|
26
|
+
return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
|
|
27
27
|
};
|
|
28
28
|
var uploadFileInfo = function (data) {
|
|
29
29
|
return httpClient({
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
|
+
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody } from './operator';
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
6
|
import { EntityInfoBody, EntityBankUpdateBody } from './entity';
|
|
7
7
|
import { CreateAccountBody } from './account';
|
|
8
|
-
import { BrandListBody } from './individual';
|
|
8
|
+
import { BrandListBody, UpdateBrandBody } from './individual';
|
|
9
|
+
import { UpdateBoardBody } from './board';
|
|
9
10
|
declare const API: {
|
|
10
11
|
ipService: {
|
|
11
12
|
getIP: () => Promise<any>;
|
|
@@ -23,7 +24,7 @@ declare const API: {
|
|
|
23
24
|
};
|
|
24
25
|
leadService: {
|
|
25
26
|
createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
|
-
updateLead: (
|
|
27
|
+
updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
|
|
27
28
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
29
|
verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
30
|
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -47,7 +48,7 @@ declare const API: {
|
|
|
47
48
|
getLocale: () => Promise<any>;
|
|
48
49
|
};
|
|
49
50
|
accountService: {
|
|
50
|
-
createAccount: (data: CreateAccountBody
|
|
51
|
+
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
51
52
|
};
|
|
52
53
|
dataService: {
|
|
53
54
|
getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -59,10 +60,23 @@ declare const API: {
|
|
|
59
60
|
getOccupation: () => Promise<any>;
|
|
60
61
|
};
|
|
61
62
|
individualService: {
|
|
62
|
-
getBrandList: (data: BrandListBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
63
|
retrieveIndividualInfo: (id: string) => Promise<any>;
|
|
64
64
|
};
|
|
65
|
+
boardService: {
|
|
66
|
+
retrieveBoard: (id: string) => Promise<any>;
|
|
67
|
+
updateBoard: ({ id, ...data }: UpdateBoardBody) => Promise<any>;
|
|
68
|
+
retrieveBoardInfo: ({ id, infoId }: import("./board").RetrieveBoardInfoBody) => Promise<any>;
|
|
69
|
+
updateBoardInfo: ({ id, infoId, ...data }: import("./board").UpdateBoardInfoBody) => Promise<any>;
|
|
70
|
+
};
|
|
71
|
+
userService: {
|
|
72
|
+
retrieveUserInfo: (userId: string) => Promise<any>;
|
|
73
|
+
};
|
|
74
|
+
brandService: {
|
|
75
|
+
retrieveBrand: (id: string) => Promise<any>;
|
|
76
|
+
getBrandList: (data: BrandListBody) => Promise<any>;
|
|
77
|
+
updateBrandInfo: ({ id, ...data }: UpdateBrandBody) => Promise<any>;
|
|
78
|
+
};
|
|
65
79
|
};
|
|
66
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody };
|
|
67
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
80
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody };
|
|
81
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
68
82
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
|
+
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
|
|
2
2
|
import { ipService } from './ip';
|
|
3
3
|
import { operatorService } from './operator';
|
|
4
4
|
import { countryService } from './country';
|
|
@@ -10,6 +10,9 @@ import { entityService } from './entity';
|
|
|
10
10
|
import { accountService } from './account';
|
|
11
11
|
import { dataService } from './data';
|
|
12
12
|
import { individualService } from './individual';
|
|
13
|
+
import { boardService } from './board';
|
|
14
|
+
import { userService } from './user';
|
|
15
|
+
import { brandService } from './brand';
|
|
13
16
|
var API = {
|
|
14
17
|
ipService: ipService,
|
|
15
18
|
operatorService: operatorService,
|
|
@@ -21,7 +24,10 @@ var API = {
|
|
|
21
24
|
firebaseService: firebaseService,
|
|
22
25
|
accountService: accountService,
|
|
23
26
|
dataService: dataService,
|
|
24
|
-
individualService: individualService
|
|
27
|
+
individualService: individualService,
|
|
28
|
+
boardService: boardService,
|
|
29
|
+
userService: userService,
|
|
30
|
+
brandService: brandService
|
|
25
31
|
};
|
|
26
|
-
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
32
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
27
33
|
export default API;
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
1
|
export declare type BrandListBody = {
|
|
3
2
|
individual_id: string;
|
|
4
3
|
};
|
|
4
|
+
export declare type UpdateBrandBody = {
|
|
5
|
+
id: string;
|
|
6
|
+
brand: {
|
|
7
|
+
activities?: Array<string>;
|
|
8
|
+
business_operation_start_at?: string;
|
|
9
|
+
channel_services?: Array<string>;
|
|
10
|
+
physical_store_available?: boolean;
|
|
11
|
+
monthly_sales_range?: string;
|
|
12
|
+
customers_served_monthly?: number;
|
|
13
|
+
customers_base?: Array<string>;
|
|
14
|
+
vat_id?: string;
|
|
15
|
+
agree_chargeback?: boolean;
|
|
16
|
+
agree_refund?: boolean;
|
|
17
|
+
employer_name?: string;
|
|
18
|
+
employer_country?: string | null;
|
|
19
|
+
source_income?: Array<string | undefined>;
|
|
20
|
+
actual_income?: string;
|
|
21
|
+
is_relative_PEP?: boolean | null;
|
|
22
|
+
is_influencer?: boolean | null;
|
|
23
|
+
is_vat_acknowledged?: boolean;
|
|
24
|
+
occupation?: string;
|
|
25
|
+
};
|
|
26
|
+
step_name: string;
|
|
27
|
+
encryption_contract?: Array<string>;
|
|
28
|
+
};
|
|
5
29
|
declare const individualService: {
|
|
6
|
-
getBrandList: (data: BrandListBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
30
|
retrieveIndividualInfo: (id: string) => Promise<any>;
|
|
8
31
|
};
|
|
9
32
|
export { individualService };
|
package/build/api/individual.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ENDPOINT_PATHS } from '../constants';
|
|
2
|
-
import
|
|
3
|
-
var getBrandList = function (data, config) {
|
|
4
|
-
return instance.post("".concat(ENDPOINT_PATHS.BRAND_LIST), data, config);
|
|
5
|
-
};
|
|
2
|
+
import { httpClient } from './axios';
|
|
6
3
|
var retrieveIndividualInfo = function (id) {
|
|
7
4
|
return httpClient({
|
|
8
5
|
method: 'get',
|
|
@@ -10,7 +7,6 @@ var retrieveIndividualInfo = function (id) {
|
|
|
10
7
|
});
|
|
11
8
|
};
|
|
12
9
|
var individualService = {
|
|
13
|
-
getBrandList: getBrandList,
|
|
14
10
|
retrieveIndividualInfo: retrieveIndividualInfo
|
|
15
11
|
};
|
|
16
12
|
export { individualService };
|
package/build/api/lead.d.ts
CHANGED
|
@@ -58,10 +58,6 @@ export declare type UpdateLeadBody = {
|
|
|
58
58
|
license_type?: string;
|
|
59
59
|
is_acknowledged?: boolean;
|
|
60
60
|
terms_conditions_accepted?: boolean;
|
|
61
|
-
flows?: {
|
|
62
|
-
name: string;
|
|
63
|
-
url: string;
|
|
64
|
-
}[];
|
|
65
61
|
lang?: LanguageMode;
|
|
66
62
|
};
|
|
67
63
|
export declare type LeadVerifyBody = {
|
|
@@ -88,7 +84,7 @@ export declare type LeadIdentityUpdateBody = {
|
|
|
88
84
|
};
|
|
89
85
|
declare const leadService: {
|
|
90
86
|
createLead: (data: CreateLeadBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
91
|
-
updateLead: (data: UpdateLeadBody
|
|
87
|
+
updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
|
|
92
88
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
93
89
|
verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
90
|
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
package/build/api/lead.js
CHANGED
|
@@ -9,22 +9,27 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import instance from './axios';
|
|
12
|
+
import instance, { httpClient } from './axios';
|
|
13
13
|
import { ENDPOINT_PATHS } from '../constants';
|
|
14
14
|
var createLead = function (data, config) {
|
|
15
15
|
return instance.post("".concat(ENDPOINT_PATHS.LEAD), data, config);
|
|
16
16
|
};
|
|
17
|
-
var updateLead = function (
|
|
18
|
-
|
|
17
|
+
var updateLead = function (_a) {
|
|
18
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
19
|
+
return httpClient({
|
|
20
|
+
method: 'put',
|
|
21
|
+
url: "".concat(ENDPOINT_PATHS.LEAD, "/").concat(id),
|
|
22
|
+
data: data
|
|
23
|
+
});
|
|
19
24
|
};
|
|
20
25
|
var retrieveLead = function (leadId) {
|
|
21
26
|
return instance.get("".concat(ENDPOINT_PATHS.LEAD, "/").concat(leadId));
|
|
22
27
|
};
|
|
23
28
|
var verifyLeadToken = function (data, config) {
|
|
24
|
-
return instance.put("".concat(ENDPOINT_PATHS.
|
|
29
|
+
return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
|
|
25
30
|
};
|
|
26
31
|
var verifyLeadOTP = function (data, config) {
|
|
27
|
-
return instance.put("".concat(ENDPOINT_PATHS.
|
|
32
|
+
return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
|
|
28
33
|
};
|
|
29
34
|
var updateLeadIdentity = function (_a, config) {
|
|
30
35
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { httpClient } from './axios';
|
|
2
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
3
|
+
var retrieveUserInfo = function (userId) {
|
|
4
|
+
return httpClient({
|
|
5
|
+
method: 'get',
|
|
6
|
+
url: "".concat(ENDPOINT_PATHS.RETRIEVE_USER_INFO, "/").concat(userId)
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
var userService = {
|
|
10
|
+
retrieveUserInfo: retrieveUserInfo
|
|
11
|
+
};
|
|
12
|
+
export { userService };
|
|
@@ -6,5 +6,6 @@ declare const rootReducer: {
|
|
|
6
6
|
tax: import("redux").Reducer<import("../features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
|
|
7
7
|
individual: import("redux").Reducer<import("../features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
|
|
8
8
|
password: import("redux").Reducer<import("../features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
|
|
9
|
+
signIn: import("redux").Reducer<import("../features/app/signIn/signInStore").SignInState, import("redux").AnyAction>;
|
|
9
10
|
};
|
|
10
11
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -5,6 +5,7 @@ import bank from '../features/app/bank/bankStore';
|
|
|
5
5
|
import tax from '../features/app/tax/taxStore';
|
|
6
6
|
import individual from '../features/app/individual/individualStore';
|
|
7
7
|
import password from '../features/app/password/passwordStore';
|
|
8
|
+
import signIn from '../features/app/signIn/signInStore';
|
|
8
9
|
var rootReducer = {
|
|
9
10
|
settings: settings,
|
|
10
11
|
connect: connect,
|
|
@@ -12,6 +13,7 @@ var rootReducer = {
|
|
|
12
13
|
bank: bank,
|
|
13
14
|
tax: tax,
|
|
14
15
|
individual: individual,
|
|
15
|
-
password: password
|
|
16
|
+
password: password,
|
|
17
|
+
signIn: signIn
|
|
16
18
|
};
|
|
17
19
|
export default rootReducer;
|
package/build/app/store.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
7
7
|
tax: import("../features/app/tax/taxStore").TaxState;
|
|
8
8
|
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
9
9
|
password: import("../features/app/password/passwordStore").PasswordState;
|
|
10
|
+
signIn: import("../features/app/signIn/signInStore").SignInState;
|
|
10
11
|
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
|
|
11
12
|
settings: import("./settings").SettingsState;
|
|
12
13
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
@@ -15,6 +16,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
15
16
|
tax: import("../features/app/tax/taxStore").TaxState;
|
|
16
17
|
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
17
18
|
password: import("../features/app/password/passwordStore").PasswordState;
|
|
19
|
+
signIn: import("../features/app/signIn/signInStore").SignInState;
|
|
18
20
|
}, import("redux").AnyAction, undefined>]>>;
|
|
19
21
|
export declare type AppDispatch = typeof store.dispatch;
|
|
20
22
|
export declare type RootState = ReturnType<typeof store.getState>;
|
|
@@ -243,5 +243,6 @@
|
|
|
243
243
|
"bank": "bank",
|
|
244
244
|
"reset_password_success_title": "لقد ارسلنا رسالة بريدية إليك",
|
|
245
245
|
"reset_password_success_description": "تحقق من بريدك الإلكتروني لإعادة تعيين كلمة المرور الخاصة بك.",
|
|
246
|
-
"license_name_label": "اسم الرخصة"
|
|
246
|
+
"license_name_label": "اسم الرخصة",
|
|
247
|
+
"email_button_label": "تواصل مع البريد الإلكتروني"
|
|
247
248
|
}
|
|
@@ -263,5 +263,6 @@
|
|
|
263
263
|
"bank": "bank",
|
|
264
264
|
"reset_password_success_title": "We sent you an email",
|
|
265
265
|
"reset_password_success_description": "Check your email to reset your password.",
|
|
266
|
-
"license_name_label": "License Name"
|
|
266
|
+
"license_name_label": "License Name",
|
|
267
|
+
"email_button_label": "Continue with Email"
|
|
267
268
|
}
|
|
@@ -2,15 +2,23 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import Box from '@mui/material/Box';
|
|
4
4
|
import Loader from '../Loader';
|
|
5
|
-
var BoxStyled = styled(Box)(function () {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
var BoxStyled = styled(Box)(function (_a) {
|
|
6
|
+
var _b;
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return (_b = {
|
|
9
|
+
width: '100%',
|
|
10
|
+
height: '100%'
|
|
11
|
+
},
|
|
12
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
13
|
+
height: window.innerHeight
|
|
14
|
+
},
|
|
15
|
+
_b.display = 'flex',
|
|
16
|
+
_b.justifyContent = 'center',
|
|
17
|
+
_b.alignItems = 'center',
|
|
18
|
+
_b.backgroundColor = 'rgba(0,0,0,0.5)',
|
|
19
|
+
_b.zIndex = 2,
|
|
20
|
+
_b);
|
|
21
|
+
});
|
|
14
22
|
export default function FlowLoading() {
|
|
15
23
|
return (_jsx(BoxStyled, { children: _jsx(Loader, { style: { width: 60, height: 60 }, svgStyle: { width: 60, height: 60 }, innerColor: 'white', outerColor: 'white', toggleAnimation: true }) }));
|
|
16
24
|
}
|
|
@@ -27,7 +27,7 @@ var DragAndDrop = function (_a) {
|
|
|
27
27
|
var _b = useDropzone({
|
|
28
28
|
maxFiles: 1,
|
|
29
29
|
noKeyboard: true,
|
|
30
|
-
noClick:
|
|
30
|
+
noClick: false,
|
|
31
31
|
multiple: false,
|
|
32
32
|
onDrop: function (files) {
|
|
33
33
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files === null || files === void 0 ? void 0 : files[0]);
|
package/build/constants/api.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export declare const ENDPOINT_PATHS: {
|
|
|
8
8
|
OPERATOR: string;
|
|
9
9
|
AUTH: string;
|
|
10
10
|
LEAD: string;
|
|
11
|
-
LEAD_IDENTITY_VERIFY: string;
|
|
12
11
|
RETRIEVE_ENTITY_LIST: string;
|
|
13
12
|
ENTITY: string;
|
|
14
13
|
CHECK_EMAIL: string;
|
|
@@ -28,4 +27,8 @@ export declare const ENDPOINT_PATHS: {
|
|
|
28
27
|
OCCUPATION: string;
|
|
29
28
|
INDIVIDUAL: string;
|
|
30
29
|
FILES_PATH: string;
|
|
30
|
+
RETRIEVE_USER_INFO: string;
|
|
31
|
+
BOARD: string;
|
|
32
|
+
TOKEN_VERIFY: string;
|
|
33
|
+
BRAND: string;
|
|
31
34
|
};
|
package/build/constants/api.js
CHANGED
|
@@ -7,15 +7,14 @@ var IP_PATH = '/ip';
|
|
|
7
7
|
var OPERATOR_PATH = '/operator';
|
|
8
8
|
var AUTH_PATH = '/auth';
|
|
9
9
|
var LEAD_PATH = '/lead';
|
|
10
|
-
var LEAD_IDENTITY_VERIFY_PATH = 'lead/identity/verify';
|
|
11
10
|
var RETRIEVE_ENTITY_LIST_PATH = '/lead/entity/list';
|
|
12
11
|
var ENTITY_PATH = '/entity';
|
|
13
12
|
var INDIVIDUAL_PATH = '/individual';
|
|
14
|
-
var BANK_PATH = '/
|
|
13
|
+
var BANK_PATH = '/bankaccount';
|
|
15
14
|
var IBAN_PATH = '/iban';
|
|
16
|
-
var CHECK_EMAIL = '/
|
|
17
|
-
var CHECK_BRAND = '
|
|
18
|
-
var CREATE_ACCOUNT_PATH = '/account
|
|
15
|
+
var CHECK_EMAIL = '/individual/email/availability';
|
|
16
|
+
var CHECK_BRAND = '/brand/name/check';
|
|
17
|
+
var CREATE_ACCOUNT_PATH = '/account';
|
|
19
18
|
var CHANNEL_PATH = '/v2/channel';
|
|
20
19
|
var CUSTOMER_BASES_PATH = '/v2/customerBases';
|
|
21
20
|
var SALES_PATH = '/v2/sales';
|
|
@@ -24,9 +23,13 @@ var SIGNUP_PATH = '/signup';
|
|
|
24
23
|
var SOURCE_INCOME_PATH = '/v2/sourceOfIncome';
|
|
25
24
|
var MONTHLY_INCOME_PATH = '/v2/monthlyIncome';
|
|
26
25
|
var OCCUPATION_PATH = '/v2/occupation';
|
|
27
|
-
var
|
|
26
|
+
var BRAND_PATH = '/brand';
|
|
27
|
+
var BRAND_LIST_PATH = "".concat(BRAND_PATH, "/list");
|
|
28
28
|
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/locale.json';
|
|
29
29
|
var FILES = '/files';
|
|
30
|
+
var TOKEN_VERIFY_PATH = '/token/verify';
|
|
31
|
+
var RETRIEVE_USER_INFO_PATH = '/user';
|
|
32
|
+
var BOARD_PATH = '/board';
|
|
30
33
|
export var ENDPOINT_PATHS = {
|
|
31
34
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
32
35
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
@@ -37,7 +40,6 @@ export var ENDPOINT_PATHS = {
|
|
|
37
40
|
OPERATOR: OPERATOR_PATH,
|
|
38
41
|
AUTH: AUTH_PATH,
|
|
39
42
|
LEAD: LEAD_PATH,
|
|
40
|
-
LEAD_IDENTITY_VERIFY: LEAD_IDENTITY_VERIFY_PATH,
|
|
41
43
|
RETRIEVE_ENTITY_LIST: RETRIEVE_ENTITY_LIST_PATH,
|
|
42
44
|
ENTITY: ENTITY_PATH,
|
|
43
45
|
CHECK_EMAIL: CHECK_EMAIL,
|
|
@@ -56,5 +58,9 @@ export var ENDPOINT_PATHS = {
|
|
|
56
58
|
BRAND_LIST: BRAND_LIST_PATH,
|
|
57
59
|
OCCUPATION: OCCUPATION_PATH,
|
|
58
60
|
INDIVIDUAL: INDIVIDUAL_PATH,
|
|
59
|
-
FILES_PATH: FILES
|
|
61
|
+
FILES_PATH: FILES,
|
|
62
|
+
RETRIEVE_USER_INFO: RETRIEVE_USER_INFO_PATH,
|
|
63
|
+
BOARD: BOARD_PATH,
|
|
64
|
+
TOKEN_VERIFY: TOKEN_VERIFY_PATH,
|
|
65
|
+
BRAND: BRAND_PATH
|
|
60
66
|
};
|