@tap-payments/auth-jsconnect 2.0.10 → 2.0.11
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/api/account.d.ts +1 -2
- package/build/api/account.js +7 -3
- 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.d.ts +0 -1
- package/build/api/entity.js +3 -10
- package/build/api/index.d.ts +19 -6
- package/build/api/index.js +7 -1
- 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/components/AnimationFlow/Loader.js +17 -9
- package/build/constants/api.d.ts +4 -1
- package/build/constants/api.js +14 -8
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +1 -1
- package/build/constants/validation.js +1 -1
- package/build/features/app/bank/bankStore.d.ts +2 -2
- package/build/features/app/bank/bankStore.js +45 -36
- package/build/features/app/business/businessStore.d.ts +2 -1
- package/build/features/app/business/businessStore.js +189 -123
- package/build/features/app/connect/connectStore.js +17 -26
- package/build/features/app/individual/individualStore.d.ts +2 -10
- package/build/features/app/individual/individualStore.js +69 -93
- package/build/features/app/password/passwordStore.d.ts +6 -5
- package/build/features/app/password/passwordStore.js +70 -54
- package/build/features/app/tax/taxStore.d.ts +1 -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/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/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/index.css +140 -139
- package/build/utils/string.d.ts +2 -1
- package/build/utils/string.js +7 -2
- package/package.json +128 -128
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
|
|
@@ -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.d.ts
CHANGED
|
@@ -50,6 +50,5 @@ declare const entityService: {
|
|
|
50
50
|
retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
51
51
|
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
52
52
|
uploadFileInfo: (data: UploadFileBody) => Promise<any>;
|
|
53
|
-
retrieveBusinessInfo: (entity_id: string) => Promise<any>;
|
|
54
53
|
};
|
|
55
54
|
export { entityService };
|
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({
|
|
@@ -41,19 +41,12 @@ var updateIndividualInfo = function (_a) {
|
|
|
41
41
|
data: data
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
var retrieveBusinessInfo = function (entity_id) {
|
|
45
|
-
return httpClient({
|
|
46
|
-
method: 'get',
|
|
47
|
-
url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id, "/info")
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
44
|
var entityService = {
|
|
51
45
|
createEntityInfo: createEntityInfo,
|
|
52
46
|
updateEntityInfo: updateEntityInfo,
|
|
53
47
|
createBankAccount: createBankAccount,
|
|
54
48
|
retrieveEntityInfo: retrieveEntityInfo,
|
|
55
49
|
updateIndividualInfo: updateIndividualInfo,
|
|
56
|
-
uploadFileInfo: uploadFileInfo
|
|
57
|
-
retrieveBusinessInfo: retrieveBusinessInfo
|
|
50
|
+
uploadFileInfo: uploadFileInfo
|
|
58
51
|
};
|
|
59
52
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, 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>>;
|
|
@@ -37,7 +38,6 @@ declare const API: {
|
|
|
37
38
|
retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
39
|
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
39
40
|
uploadFileInfo: (data: import("./entity").UploadFileBody) => Promise<any>;
|
|
40
|
-
retrieveBusinessInfo: (entity_id: string) => Promise<any>;
|
|
41
41
|
};
|
|
42
42
|
availabilityServices: {
|
|
43
43
|
checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -48,7 +48,7 @@ declare const API: {
|
|
|
48
48
|
getLocale: () => Promise<any>;
|
|
49
49
|
};
|
|
50
50
|
accountService: {
|
|
51
|
-
createAccount: (data: CreateAccountBody
|
|
51
|
+
createAccount: (data: CreateAccountBody) => Promise<any>;
|
|
52
52
|
};
|
|
53
53
|
dataService: {
|
|
54
54
|
getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -60,10 +60,23 @@ declare const API: {
|
|
|
60
60
|
getOccupation: () => Promise<any>;
|
|
61
61
|
};
|
|
62
62
|
individualService: {
|
|
63
|
-
getBrandList: (data: BrandListBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
63
|
retrieveIndividualInfo: (id: string) => Promise<any>;
|
|
65
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
|
+
};
|
|
66
79
|
};
|
|
67
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody };
|
|
80
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody };
|
|
68
81
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
69
82
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -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
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 };
|
|
@@ -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
|
}
|
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
|
};
|
package/build/constants/app.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare const CONNECT_STEP_NAMES: {
|
|
|
75
75
|
CREATE_AUTH_NID: string;
|
|
76
76
|
VERIFY_AUTH_NID: string;
|
|
77
77
|
UPDATE_LEAD_INDIVIDUAL: string;
|
|
78
|
-
|
|
78
|
+
UPDATE_LEAD_BRAND: string;
|
|
79
79
|
CREATE_AUTH_PASSWORD: string;
|
|
80
80
|
VERIFY_AUTH_PASSWORD: string;
|
|
81
81
|
CONNECT_SUCCESS: string;
|
package/build/constants/app.js
CHANGED
|
@@ -335,7 +335,7 @@ export var CONNECT_STEP_NAMES = {
|
|
|
335
335
|
CREATE_AUTH_NID: 'connect_create_auth_nid',
|
|
336
336
|
VERIFY_AUTH_NID: 'connect_verify_auth_nid',
|
|
337
337
|
UPDATE_LEAD_INDIVIDUAL: 'connect_update_lead_individual',
|
|
338
|
-
|
|
338
|
+
UPDATE_LEAD_BRAND: 'connect_update_lead_brand',
|
|
339
339
|
CREATE_AUTH_PASSWORD: 'connect_create_auth_password',
|
|
340
340
|
VERIFY_AUTH_PASSWORD: 'connect_verify_auth_password',
|
|
341
341
|
CONNECT_SUCCESS: 'connect_completed'
|
|
@@ -10,5 +10,5 @@ export var VALID_FILE_FORMATS = ['image/jpeg', 'image/png', 'image/jpg', 'applic
|
|
|
10
10
|
export var REGEX_FULL_NAME = /^([a-zA-Z]{2,}\s{1}[a-zA-Z]{1,}|[a-zA-Z]+\s{1}[a-zA-Z.-]{1,}\s{1}[a-zA-Z.-]{1,}\s{1}[a-zA-Z]{1,}|[a-zA-Z]+\s{1}[a-zA-Z.-]{1,}\s{1}[a-zA-Z]{1,})$/g;
|
|
11
11
|
export var REGEX_WEBSITE = /^[a-zA-Z0-9]+([\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,63}(:[0-9]{1,5})?(\/.*)?$/;
|
|
12
12
|
export var REGEX_BENEFICIARY_NAME = /^([\u0600-\u065F\u066A-\u06EF\u06FA-\u06FFa-zA-Z\s])*$/g;
|
|
13
|
-
export var REGEX_BRAND_NAME =
|
|
13
|
+
export var REGEX_BRAND_NAME = /^(([a-zA-Z0-9])+\s)*[a-zA-Z0-9]+$/;
|
|
14
14
|
export var EMAIL_MAX_LENGTH = 50;
|
|
@@ -3,7 +3,7 @@ import { BankFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState }
|
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
data: any;
|
|
6
|
-
|
|
6
|
+
boardResponse: any;
|
|
7
7
|
token: string;
|
|
8
8
|
}, string, {}>;
|
|
9
9
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -27,7 +27,7 @@ export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
27
27
|
cancelToken: CancelToken;
|
|
28
28
|
onSuccess?: (() => void) | undefined;
|
|
29
29
|
}, {}>;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
31
31
|
response: any;
|
|
32
32
|
formData: void;
|
|
33
33
|
} | undefined, void, {}>;
|