@tap-payments/auth-jsconnect 1.0.72 → 1.0.77
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 +7 -6
- package/build/@types/form.d.ts +2 -2
- package/build/api/auth.d.ts +7 -0
- package/build/api/auth.js +5 -1
- package/build/api/data.d.ts +1 -0
- package/build/api/data.js +5 -1
- package/build/api/entity.d.ts +1 -0
- package/build/api/entity.js +5 -1
- package/build/api/index.d.ts +9 -2
- package/build/api/index.js +3 -1
- package/build/api/individual.d.ts +8 -0
- package/build/api/individual.js +9 -0
- package/build/components/SimpleList/SimpleList.js +2 -2
- package/build/constants/api.d.ts +3 -0
- package/build/constants/api.js +10 -4
- package/build/constants/app.js +18 -6
- package/build/constants/assets.js +1 -1
- package/build/features/app/bank/bankStore.d.ts +3 -0
- package/build/features/app/bank/bankStore.js +45 -9
- package/build/features/app/business/businessStore.d.ts +4 -5
- package/build/features/app/business/businessStore.js +90 -54
- package/build/features/app/connect/connectStore.d.ts +1 -0
- package/build/features/app/connect/connectStore.js +19 -10
- package/build/features/app/individual/individualStore.d.ts +7 -1
- package/build/features/app/individual/individualStore.js +79 -30
- package/build/features/app/password/passwordStore.d.ts +4 -0
- package/build/features/app/password/passwordStore.js +71 -15
- package/build/features/bank/screens/Success/Success.js +4 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +87 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +1 -1
- package/build/features/business/screens/Activities/validation.d.ts +24 -24
- package/build/features/business/screens/Activities/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.js +2 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +2 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +30 -12
- package/build/features/business/screens/Customers/validation.js +2 -2
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +20 -12
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -2
- package/build/features/connect/screens/Merchant/Merchant.js +9 -2
- package/build/features/connect/screens/Mobile/MobileNumber.js +11 -2
- package/build/features/featuresScreens.js +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +14 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +5 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +62 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +3 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +5 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +3 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -11
- package/build/features/individual/screens/Success/Success.js +4 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +87 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.js +9 -10
- package/build/features/password/screens/Success/Success.js +6 -0
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -0
- package/build/features/shared/Button/FlowsButtons.js +2 -2
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -1
- package/build/features/shared/Search/Search.js +2 -14
- package/build/utils/array.d.ts +1 -0
- package/build/utils/array.js +6 -0
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +7 -0
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -47,9 +47,8 @@ export declare enum SocialMediaTypes {
|
|
|
47
47
|
}
|
|
48
48
|
export interface CustomerLocation {
|
|
49
49
|
id: string;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
title: string;
|
|
50
|
+
name_ar: string;
|
|
51
|
+
name_en: string;
|
|
53
52
|
}
|
|
54
53
|
export interface ExpectedCustomer extends CustomerLocation {
|
|
55
54
|
}
|
|
@@ -83,15 +82,16 @@ export interface Activity {
|
|
|
83
82
|
}
|
|
84
83
|
export interface SalesChannel {
|
|
85
84
|
id: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
title: string;
|
|
85
|
+
name_ar: string;
|
|
86
|
+
name_en: string;
|
|
89
87
|
}
|
|
90
88
|
export interface SourceOfIncome {
|
|
91
89
|
id: string;
|
|
92
90
|
name_ar: string;
|
|
93
91
|
name_en: string;
|
|
94
92
|
}
|
|
93
|
+
export interface MonthlyIncome extends SourceOfIncome {
|
|
94
|
+
}
|
|
95
95
|
export interface AppInfo {
|
|
96
96
|
name: string;
|
|
97
97
|
identifier?: string;
|
|
@@ -168,5 +168,6 @@ export declare type BrandInfo = {
|
|
|
168
168
|
en: string;
|
|
169
169
|
};
|
|
170
170
|
website: string;
|
|
171
|
+
social: Array<string>;
|
|
171
172
|
};
|
|
172
173
|
export {};
|
package/build/@types/form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, SalesChannel, SourceOfIncome } from './app';
|
|
1
|
+
import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, MonthlyIncome, SalesChannel, SourceOfIncome } from './app';
|
|
2
2
|
export declare type MobileFormValues = {
|
|
3
3
|
mobile: string | null;
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -55,7 +55,7 @@ export declare type TaxFormValues = {
|
|
|
55
55
|
};
|
|
56
56
|
export declare type IndividualExtraFormValues = {
|
|
57
57
|
sourceIncome: SourceOfIncome | undefined;
|
|
58
|
-
monthlyIncome:
|
|
58
|
+
monthlyIncome: MonthlyIncome | undefined;
|
|
59
59
|
employerName: string;
|
|
60
60
|
employerLocation: CountryCode | undefined;
|
|
61
61
|
isPEP: boolean | null;
|
package/build/api/auth.d.ts
CHANGED
|
@@ -31,8 +31,15 @@ export declare type VerifyAuthBody = {
|
|
|
31
31
|
remember_me?: boolean;
|
|
32
32
|
scopes?: Array<string>;
|
|
33
33
|
};
|
|
34
|
+
export declare type CreatePasswordBody = {
|
|
35
|
+
password: string;
|
|
36
|
+
signup_token?: string;
|
|
37
|
+
step_name: string;
|
|
38
|
+
encryption_contract: Array<string>;
|
|
39
|
+
};
|
|
34
40
|
declare const authService: {
|
|
35
41
|
createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
42
|
verifyAuth: (data: VerifyAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
43
|
+
createPassword: (data: CreatePasswordBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
44
|
};
|
|
38
45
|
export { authService };
|
package/build/api/auth.js
CHANGED
|
@@ -6,8 +6,12 @@ var createAuth = function (data, config) {
|
|
|
6
6
|
var verifyAuth = function (data, config) {
|
|
7
7
|
return instance.put("".concat(ENDPOINT_PATHS.AUTH), data, config);
|
|
8
8
|
};
|
|
9
|
+
var createPassword = function (data, config) {
|
|
10
|
+
return instance.post("".concat(ENDPOINT_PATHS.SIGNUP), data, config);
|
|
11
|
+
};
|
|
9
12
|
var authService = {
|
|
10
13
|
createAuth: createAuth,
|
|
11
|
-
verifyAuth: verifyAuth
|
|
14
|
+
verifyAuth: verifyAuth,
|
|
15
|
+
createPassword: createPassword
|
|
12
16
|
};
|
|
13
17
|
export { authService };
|
package/build/api/data.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ declare const dataService: {
|
|
|
4
4
|
getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
5
|
getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
6
|
getSourceOfIncome: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
getMonthlyIncome: (countryCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
8
|
};
|
|
8
9
|
export { dataService };
|
package/build/api/data.js
CHANGED
|
@@ -15,11 +15,15 @@ var getExpectedCustomerSales = function () {
|
|
|
15
15
|
var getSourceOfIncome = function () {
|
|
16
16
|
return instance.get("".concat(ENDPOINT_PATHS.SOURCE_INCOME));
|
|
17
17
|
};
|
|
18
|
+
var getMonthlyIncome = function (countryCode) {
|
|
19
|
+
return instance.get("".concat(ENDPOINT_PATHS.MONTHLY_INCOME, "/").concat(countryCode));
|
|
20
|
+
};
|
|
18
21
|
var dataService = {
|
|
19
22
|
getChannelsOfServices: getChannelsOfServices,
|
|
20
23
|
getCustomerBases: getCustomerBases,
|
|
21
24
|
getExpectedSales: getExpectedSales,
|
|
22
25
|
getExpectedCustomerSales: getExpectedCustomerSales,
|
|
23
|
-
getSourceOfIncome: getSourceOfIncome
|
|
26
|
+
getSourceOfIncome: getSourceOfIncome,
|
|
27
|
+
getMonthlyIncome: getMonthlyIncome
|
|
24
28
|
};
|
|
25
29
|
export { dataService };
|
package/build/api/entity.d.ts
CHANGED
|
@@ -38,5 +38,6 @@ declare const entityService: {
|
|
|
38
38
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
39
|
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
40
|
createBankAccount: (data: EntityBankUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
|
+
retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
41
42
|
};
|
|
42
43
|
export { entityService };
|
package/build/api/entity.js
CHANGED
|
@@ -11,6 +11,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { ENDPOINT_PATHS } from '../constants';
|
|
13
13
|
import instance from './axios';
|
|
14
|
+
var retrieveEntityInfo = function (entity_id, config) {
|
|
15
|
+
return instance.get("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id), config);
|
|
16
|
+
};
|
|
14
17
|
var createEntityInfo = function (_a, config) {
|
|
15
18
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
16
19
|
return instance.post("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/info"), data, config);
|
|
@@ -25,6 +28,7 @@ var createBankAccount = function (data, config) {
|
|
|
25
28
|
var entityService = {
|
|
26
29
|
createEntityInfo: createEntityInfo,
|
|
27
30
|
updateEntityInfo: updateEntityInfo,
|
|
28
|
-
createBankAccount: createBankAccount
|
|
31
|
+
createBankAccount: createBankAccount,
|
|
32
|
+
retrieveEntityInfo: retrieveEntityInfo
|
|
29
33
|
};
|
|
30
34
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody } from './operator';
|
|
3
|
-
import { CreateAuthBody, VerifyAuthBody } from './auth';
|
|
3
|
+
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody } 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
9
|
declare const API: {
|
|
9
10
|
ipService: {
|
|
10
11
|
getIP: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -19,6 +20,7 @@ declare const API: {
|
|
|
19
20
|
authService: {
|
|
20
21
|
createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
22
|
verifyAuth: (data: VerifyAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
+
createPassword: (data: CreatePasswordBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
24
|
};
|
|
23
25
|
leadService: {
|
|
24
26
|
createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -33,6 +35,7 @@ declare const API: {
|
|
|
33
35
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
34
36
|
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
37
|
createBankAccount: (data: EntityBankUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
+
retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
39
|
};
|
|
37
40
|
availabilityServices: {
|
|
38
41
|
checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -51,8 +54,12 @@ declare const API: {
|
|
|
51
54
|
getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
52
55
|
getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
53
56
|
getSourceOfIncome: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
57
|
+
getMonthlyIncome: (countryCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
|
+
};
|
|
59
|
+
individualService: {
|
|
60
|
+
getBrandList: (data: BrandListBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
61
|
};
|
|
55
62
|
};
|
|
56
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody };
|
|
63
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody };
|
|
57
64
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
58
65
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { firebaseService } from './firebase';
|
|
|
9
9
|
import { entityService } from './entity';
|
|
10
10
|
import { accountService } from './account';
|
|
11
11
|
import { dataService } from './data';
|
|
12
|
+
import { individualService } from './individual';
|
|
12
13
|
var API = {
|
|
13
14
|
ipService: ipService,
|
|
14
15
|
operatorService: operatorService,
|
|
@@ -19,7 +20,8 @@ var API = {
|
|
|
19
20
|
availabilityServices: availabilityServices,
|
|
20
21
|
firebaseService: firebaseService,
|
|
21
22
|
accountService: accountService,
|
|
22
|
-
dataService: dataService
|
|
23
|
+
dataService: dataService,
|
|
24
|
+
individualService: individualService
|
|
23
25
|
};
|
|
24
26
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
25
27
|
export default API;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
export declare type BrandListBody = {
|
|
3
|
+
individual_id: string;
|
|
4
|
+
};
|
|
5
|
+
declare const individualService: {
|
|
6
|
+
getBrandList: (data: BrandListBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
};
|
|
8
|
+
export { individualService };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
2
|
+
import instance from './axios';
|
|
3
|
+
var getBrandList = function (data, config) {
|
|
4
|
+
return instance.post("".concat(ENDPOINT_PATHS.BRAND_LIST), data, config);
|
|
5
|
+
};
|
|
6
|
+
var individualService = {
|
|
7
|
+
getBrandList: getBrandList
|
|
8
|
+
};
|
|
9
|
+
export { individualService };
|
|
@@ -34,12 +34,12 @@ var ListStyled = styled(List)(function (_a) {
|
|
|
34
34
|
return (_b = {
|
|
35
35
|
overflowY: 'auto',
|
|
36
36
|
listStyle: 'none',
|
|
37
|
-
display: '
|
|
37
|
+
display: 'flow-root',
|
|
38
38
|
paddingTop: theme.spacing(2.125),
|
|
39
39
|
height: theme.spacing(40)
|
|
40
40
|
},
|
|
41
41
|
_b[theme.breakpoints.down('sm')] = {
|
|
42
|
-
|
|
42
|
+
maxHeight: "calc(100vh - ".concat(theme.spacing(34.875), ")")
|
|
43
43
|
},
|
|
44
44
|
_b['&::-webkit-scrollbar'] = {
|
|
45
45
|
width: '0px'
|
package/build/constants/api.d.ts
CHANGED
|
@@ -18,7 +18,10 @@ export declare const ENDPOINT_PATHS: {
|
|
|
18
18
|
CUSTOMER_BASES: string;
|
|
19
19
|
SALES: string;
|
|
20
20
|
EXPECTED_CUSTOMERS: string;
|
|
21
|
+
SIGNUP: string;
|
|
21
22
|
SOURCE_INCOME: string;
|
|
23
|
+
MONTHLY_INCOME: string;
|
|
22
24
|
BANK: string;
|
|
23
25
|
IBAN_BANK: string;
|
|
26
|
+
BRAND_LIST: string;
|
|
24
27
|
};
|
package/build/constants/api.js
CHANGED
|
@@ -14,11 +14,14 @@ var IBAN_PATH = '/iban';
|
|
|
14
14
|
var CHECK_EMAIL = '/lead/identity/emailcheck';
|
|
15
15
|
var CHECK_BRAND = 'lead/profile/profile_name';
|
|
16
16
|
var CREATE_ACCOUNT_PATH = '/account/create';
|
|
17
|
-
var CHANNEL_PATH = '/channel';
|
|
18
|
-
var CUSTOMER_BASES_PATH = '/customerBases';
|
|
17
|
+
var CHANNEL_PATH = '/v2/channel';
|
|
18
|
+
var CUSTOMER_BASES_PATH = '/v2/customerBases';
|
|
19
19
|
var SALES_PATH = '/v2/sales';
|
|
20
|
-
var EXPECTED_CUSTOMERS_PATH = '/expectedCustomers';
|
|
20
|
+
var EXPECTED_CUSTOMERS_PATH = '/v2/expectedCustomers';
|
|
21
|
+
var SIGNUP_PATH = '/signup';
|
|
21
22
|
var SOURCE_INCOME_PATH = '/v2/sourceOfIncome';
|
|
23
|
+
var MONTHLY_INCOME_PATH = '/v2/monthlyIncome';
|
|
24
|
+
var BRAND_LIST_PATH = '/brand/list';
|
|
22
25
|
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/sandbox/local.json';
|
|
23
26
|
export var ENDPOINT_PATHS = {
|
|
24
27
|
BASE_URL: API_BASE_URL,
|
|
@@ -40,7 +43,10 @@ export var ENDPOINT_PATHS = {
|
|
|
40
43
|
CUSTOMER_BASES: CUSTOMER_BASES_PATH,
|
|
41
44
|
SALES: SALES_PATH,
|
|
42
45
|
EXPECTED_CUSTOMERS: EXPECTED_CUSTOMERS_PATH,
|
|
46
|
+
SIGNUP: SIGNUP_PATH,
|
|
43
47
|
SOURCE_INCOME: SOURCE_INCOME_PATH,
|
|
48
|
+
MONTHLY_INCOME: MONTHLY_INCOME_PATH,
|
|
44
49
|
BANK: BANK_PATH,
|
|
45
|
-
IBAN_BANK: IBAN_PATH
|
|
50
|
+
IBAN_BANK: IBAN_PATH,
|
|
51
|
+
BRAND_LIST: BRAND_LIST_PATH
|
|
46
52
|
};
|
package/build/constants/app.js
CHANGED
|
@@ -109,7 +109,7 @@ export var BUSINESS_SCREENS_NAVIGATION = [
|
|
|
109
109
|
export var INDIVIDUAL_SCREENS_NAVIGATION = [
|
|
110
110
|
{
|
|
111
111
|
name: 'INDIVIDUAL_VERIFY_STEP',
|
|
112
|
-
next: ['INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP', '
|
|
112
|
+
next: ['INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP', 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'],
|
|
113
113
|
prev: '',
|
|
114
114
|
order: 1
|
|
115
115
|
},
|
|
@@ -121,22 +121,28 @@ export var INDIVIDUAL_SCREENS_NAVIGATION = [
|
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
name: 'INDIVIDUAL_SUCCESS_STEP',
|
|
124
|
-
next: '',
|
|
124
|
+
next: 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
125
125
|
prev: 'INDIVIDUAL_ADDITIONAL_INDIVIDUAL_INFO_STEP',
|
|
126
126
|
order: 3
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'INDIVIDUAL_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
130
|
+
next: '',
|
|
131
|
+
prev: 'INDIVIDUAL_SUCCESS_STEP',
|
|
132
|
+
order: 3
|
|
127
133
|
}
|
|
128
134
|
];
|
|
129
135
|
export var PASSWORD_SCREENS_NAVIGATION = [
|
|
130
136
|
{
|
|
131
137
|
name: 'PASSWORD_VERIFY_STEP',
|
|
132
|
-
next: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
138
|
+
next: ['PASSWORD_CREATE_PASSWORD_STEP', 'PASSWORD_SUCCESS_STEP'],
|
|
133
139
|
prev: '',
|
|
134
140
|
order: 1
|
|
135
141
|
},
|
|
136
142
|
{
|
|
137
143
|
name: 'PASSWORD_CREATE_PASSWORD_STEP',
|
|
138
144
|
next: 'PASSWORD_SUCCESS_STEP',
|
|
139
|
-
prev: '
|
|
145
|
+
prev: '',
|
|
140
146
|
order: 2
|
|
141
147
|
},
|
|
142
148
|
{
|
|
@@ -149,7 +155,7 @@ export var PASSWORD_SCREENS_NAVIGATION = [
|
|
|
149
155
|
export var BANK_SCREENS_NAVIGATION = [
|
|
150
156
|
{
|
|
151
157
|
name: 'BANK_VERIFY_STEP',
|
|
152
|
-
next: ['BANK_BANK_DETAILS_STEP', '
|
|
158
|
+
next: ['BANK_BANK_DETAILS_STEP', 'BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'],
|
|
153
159
|
prev: '',
|
|
154
160
|
order: 1
|
|
155
161
|
},
|
|
@@ -161,9 +167,15 @@ export var BANK_SCREENS_NAVIGATION = [
|
|
|
161
167
|
},
|
|
162
168
|
{
|
|
163
169
|
name: 'BANK_DETAILS_SUCCESS_STEP',
|
|
164
|
-
next: '',
|
|
170
|
+
next: 'BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
165
171
|
prev: 'BANK_BANK_DETAILS_STEP',
|
|
166
172
|
order: 3
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
176
|
+
next: '',
|
|
177
|
+
prev: 'BANK_DETAILS_SUCCESS_STEP',
|
|
178
|
+
order: 4
|
|
167
179
|
}
|
|
168
180
|
];
|
|
169
181
|
export var TAX_SCREENS_NAVIGATION = [
|
|
@@ -36,7 +36,7 @@ export var ICONS_NAMES = {
|
|
|
36
36
|
EMAIL_ICON: 'https://dash.b-cdn.net/icons/menu/email.png',
|
|
37
37
|
MOBILE_ICON: 'https://dash.b-cdn.net/icons/menu/mobile.svg',
|
|
38
38
|
SEARCH_ICON: 'https://dash.b-cdn.net/icons/menu/search-icon.svg',
|
|
39
|
-
SUCCESS_GIF: 'https://dash.b-cdn.net/icons/menu/
|
|
39
|
+
SUCCESS_GIF: 'https://dash.b-cdn.net/icons/menu/success_icon.gif',
|
|
40
40
|
GMAIL_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-filled.svg',
|
|
41
41
|
GMAIL_White_ICON: 'https://dash.b-cdn.net/icons/menu/Gmail-white.svg',
|
|
42
42
|
outlook_Filled_ICON: 'https://dash.b-cdn.net/icons/menu/Outlook-filled.svg',
|
|
@@ -10,6 +10,9 @@ export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
10
10
|
data: any;
|
|
11
11
|
formData: OTPFormValues;
|
|
12
12
|
}, OTPFormValues, {}>;
|
|
13
|
+
export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
14
|
+
data: any;
|
|
15
|
+
}, string, {}>;
|
|
13
16
|
export declare const createBankAccount: import("@reduxjs/toolkit").AsyncThunk<{
|
|
14
17
|
data: any;
|
|
15
18
|
formData: BankFormValues;
|
|
@@ -78,9 +78,9 @@ export var verifyLeadToken = createAsyncThunk('verifyLeadToken', function (token
|
|
|
78
78
|
}); });
|
|
79
79
|
export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
80
|
var _a, bank, settings, responseBody, payload, data, steps, hasBankCompleted;
|
|
81
|
-
var _b, _c, _d, _e;
|
|
82
|
-
return __generator(this, function (
|
|
83
|
-
switch (
|
|
81
|
+
var _b, _c, _d, _e, _f, _g;
|
|
82
|
+
return __generator(this, function (_h) {
|
|
83
|
+
switch (_h.label) {
|
|
84
84
|
case 0:
|
|
85
85
|
_a = thunkApi.getState(), bank = _a.bank, settings = _a.settings;
|
|
86
86
|
responseBody = bank.data.verify.responseBody;
|
|
@@ -93,13 +93,16 @@ export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (p
|
|
|
93
93
|
};
|
|
94
94
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
95
95
|
case 1:
|
|
96
|
-
data = (
|
|
96
|
+
data = (_h.sent()).data;
|
|
97
|
+
return [4, thunkApi.dispatch(retrieveEntityInfo((_d = (_c = bank.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.entity) === null || _d === void 0 ? void 0 : _d.id))];
|
|
98
|
+
case 2:
|
|
99
|
+
_h.sent();
|
|
97
100
|
if (!data.errors) {
|
|
98
|
-
(
|
|
99
|
-
steps = (
|
|
101
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, { otp: params.otp });
|
|
102
|
+
steps = (_g = bank.data.verify.responseBody) === null || _g === void 0 ? void 0 : _g.steps;
|
|
100
103
|
hasBankCompleted = Object.keys(steps).find(function (key) { return key === BANK_STEP_NAMES.BANK_SUCCESS; });
|
|
101
104
|
if (hasBankCompleted) {
|
|
102
|
-
thunkApi.dispatch(handleNextScreenStep('
|
|
105
|
+
thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
103
106
|
}
|
|
104
107
|
else {
|
|
105
108
|
thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP'));
|
|
@@ -109,6 +112,17 @@ export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (p
|
|
|
109
112
|
}
|
|
110
113
|
});
|
|
111
114
|
}); });
|
|
115
|
+
export var retrieveEntityInfo = createAsyncThunk('retrieveBankEntityInfo', function (entityID) { return __awaiter(void 0, void 0, void 0, function () {
|
|
116
|
+
var data;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0: return [4, API.entityService.retrieveEntityInfo(entityID)];
|
|
120
|
+
case 1:
|
|
121
|
+
data = (_a.sent()).data;
|
|
122
|
+
return [2, { data: data }];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}); });
|
|
112
126
|
export var createBankAccount = createAsyncThunk('createBankAccount', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
127
|
var _a, settings, bank, iban, beneficiaryName, bank_name, requestBody, data;
|
|
114
128
|
var _b, _c, _d, _e;
|
|
@@ -160,7 +174,7 @@ export var checkIbanBank = createAsyncThunk('checkIbanBank', function (_a) {
|
|
|
160
174
|
});
|
|
161
175
|
});
|
|
162
176
|
});
|
|
163
|
-
export var updateLeadSuccess = createAsyncThunk('
|
|
177
|
+
export var updateLeadSuccess = createAsyncThunk('updateLeadBankSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
164
178
|
var _a, settings, bank, response, payload;
|
|
165
179
|
var _b, _c, _d, _e, _f, _g;
|
|
166
180
|
return __generator(this, function (_h) {
|
|
@@ -180,7 +194,9 @@ export var updateLeadSuccess = createAsyncThunk('updateLeadSuccess', function (p
|
|
|
180
194
|
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, params);
|
|
181
195
|
(_g = (_f = settings.data.appConfig).onFlowCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, { data: response === null || response === void 0 ? void 0 : response.data });
|
|
182
196
|
_h.label = 2;
|
|
183
|
-
case 2:
|
|
197
|
+
case 2:
|
|
198
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
199
|
+
return [2, { response: response === null || response === void 0 ? void 0 : response.data, formData: params }];
|
|
184
200
|
}
|
|
185
201
|
});
|
|
186
202
|
}); });
|
|
@@ -259,6 +275,26 @@ export var bankSlice = createSlice({
|
|
|
259
275
|
.addCase(verifyBankLeadOTP.rejected, function (state, action) {
|
|
260
276
|
state.loading = false;
|
|
261
277
|
state.error = action.error.message;
|
|
278
|
+
})
|
|
279
|
+
.addCase(retrieveEntityInfo.pending, function (state) {
|
|
280
|
+
state.error = null;
|
|
281
|
+
state.loading = true;
|
|
282
|
+
})
|
|
283
|
+
.addCase(retrieveEntityInfo.fulfilled, function (state, action) {
|
|
284
|
+
var _a;
|
|
285
|
+
state.error = null;
|
|
286
|
+
state.loading = false;
|
|
287
|
+
var data = (action.payload || {}).data;
|
|
288
|
+
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
289
|
+
if (description) {
|
|
290
|
+
state.error = description;
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
state.data.verify.responseBody = __assign(__assign({}, data), state.data.verify.responseBody);
|
|
294
|
+
})
|
|
295
|
+
.addCase(retrieveEntityInfo.rejected, function (state, action) {
|
|
296
|
+
state.error = action.error.message;
|
|
297
|
+
state.loading = false;
|
|
262
298
|
})
|
|
263
299
|
.addCase(updateLeadSuccess.fulfilled, function (state, action) {
|
|
264
300
|
var _a;
|
|
@@ -27,13 +27,12 @@ export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
27
27
|
}, NIDFormValues & {
|
|
28
28
|
isResend: boolean;
|
|
29
29
|
}, {}>;
|
|
30
|
-
export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
31
|
-
data: any;
|
|
32
|
-
licenseNumber: string;
|
|
33
|
-
}, {
|
|
30
|
+
export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
34
31
|
leadId: string;
|
|
35
|
-
licenseNumber: string;
|
|
36
32
|
}, {}>;
|
|
33
|
+
export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
34
|
+
data: any;
|
|
35
|
+
}, string, {}>;
|
|
37
36
|
export declare const updateLeadBusinessType: import("@reduxjs/toolkit").AsyncThunk<{
|
|
38
37
|
data: any;
|
|
39
38
|
formData: BusinessTypeFormValues;
|