@tap-payments/auth-jsconnect 2.0.2 → 2.0.5
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 +5 -0
- package/build/@types/form.d.ts +4 -1
- package/build/api/auth.d.ts +20 -3
- package/build/api/axios.js +8 -9
- package/build/api/data.d.ts +1 -0
- package/build/api/data.js +9 -2
- package/build/api/entity.d.ts +13 -1
- package/build/api/entity.js +20 -2
- package/build/api/index.d.ts +7 -4
- package/build/api/lead.d.ts +3 -1
- package/build/api/lead.js +14 -2
- package/build/assets/locales/ar.json +4 -1
- package/build/assets/locales/en.json +4 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +2 -1
- package/build/components/AnimationFlow/AnimationFlow.js +2 -2
- package/build/components/AnimationFlow/BottomSheet.d.ts +2 -1
- package/build/components/AnimationFlow/BottomSheet.js +16 -4
- package/build/components/FileInput/DragAndDrop.d.ts +7 -0
- package/build/components/FileInput/DragAndDrop.js +39 -0
- package/build/components/FileInput/UploadInput.d.ts +7 -0
- package/build/components/FileInput/UploadInput.js +38 -0
- package/build/components/FileInput/index.d.ts +3 -0
- package/build/components/FileInput/index.js +3 -0
- package/build/constants/api.d.ts +3 -1
- package/build/constants/api.js +7 -3
- package/build/constants/app.d.ts +5 -0
- package/build/constants/app.js +55 -9
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/bank/bankStore.d.ts +1 -0
- package/build/features/app/bank/bankStore.js +59 -18
- package/build/features/app/business/businessStore.d.ts +3 -5
- package/build/features/app/business/businessStore.js +149 -50
- package/build/features/app/connect/connectStore.d.ts +5 -10
- package/build/features/app/connect/connectStore.js +135 -41
- package/build/features/app/individual/individualStore.d.ts +3 -2
- package/build/features/app/individual/individualStore.js +50 -37
- package/build/features/app/password/passwordStore.d.ts +32 -1
- package/build/features/app/password/passwordStore.js +197 -14
- package/build/features/app/tax/taxStore.js +19 -12
- package/build/features/bank/Bank.js +3 -4
- package/build/features/bank/screens/BankDetails/BankDetails.js +2 -1
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/BankStatement.js +38 -0
- package/build/features/bank/screens/BankDetails/validation.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/validation.js +1 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/bank/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/bank/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +23 -15
- package/build/features/business/Business.js +3 -4
- package/build/features/business/screens/Activities/Activities.js +2 -1
- package/build/features/business/screens/Activities/LicenseName.d.ts +5 -0
- package/build/features/business/screens/Activities/LicenseName.js +30 -0
- package/build/features/business/screens/IDBOD/IDBOD.js +1 -1
- package/build/features/business/screens/OTP/OTPInput.js +3 -9
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/business/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/business/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +24 -17
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +1 -5
- package/build/features/connect/screens/Merchant/Merchant.js +10 -8
- package/build/features/connect/screens/Merchant/validation.js +4 -2
- package/build/features/connect/screens/Mobile/Mobile.js +2 -2
- package/build/features/connect/screens/Mobile/MobileNumber.js +1 -1
- package/build/features/connect/screens/NID/IDNumber.js +1 -1
- package/build/features/connect/screens/NID/NID.js +2 -2
- package/build/features/connect/screens/OTP/OTPInput.js +3 -13
- package/build/features/featuresScreens.js +20 -5
- package/build/features/individual/Individual.js +3 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +7 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +10 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +89 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +3 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/individual/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/individual/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +23 -15
- package/build/features/password/Password.js +11 -6
- package/build/features/password/screens/CreatePassword/CreatePassword.js +9 -2
- package/build/features/password/screens/OTP/OTP.d.ts +8 -0
- package/build/features/password/screens/OTP/OTP.js +78 -0
- package/build/features/password/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/password/screens/OTP/OTPInput.js +46 -0
- package/build/features/password/screens/OTP/index.d.ts +3 -0
- package/build/features/password/screens/OTP/index.js +2 -0
- package/build/features/password/screens/OTP/validation.d.ts +8 -0
- package/build/features/password/screens/OTP/validation.js +4 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/password/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/password/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/password/screens/Success/Success.js +8 -2
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +24 -16
- package/build/features/password/screens/Verify/OTPInput.d.ts +2 -2
- package/build/features/password/screens/Verify/OTPInput.js +1 -1
- package/build/features/shared/Button/Button.js +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +8 -2
- package/build/features/shared/Button/FlowsButtons.js +90 -6
- package/build/features/shared/Button/SuccessButton.js +31 -13
- package/build/features/shared/UploadFile/UploadFile.d.ts +21 -0
- package/build/features/shared/UploadFile/UploadFile.js +77 -0
- package/build/features/shared/UploadFile/index.d.ts +2 -0
- package/build/features/shared/UploadFile/index.js +2 -0
- package/build/features/tax/Tax.js +3 -4
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/tax/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/tax/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +23 -15
- package/build/hooks/useAppTheme.js +3 -2
- package/build/index.css +4 -0
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +1 -2
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +6 -1
- package/package.json +2 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -90,6 +90,11 @@ export interface SourceOfIncome {
|
|
|
90
90
|
name_ar: string;
|
|
91
91
|
name_en: string;
|
|
92
92
|
}
|
|
93
|
+
export interface Occupation {
|
|
94
|
+
id: string;
|
|
95
|
+
name_ar: string;
|
|
96
|
+
name_en: string;
|
|
97
|
+
}
|
|
93
98
|
export interface MonthlyIncome extends SourceOfIncome {
|
|
94
99
|
}
|
|
95
100
|
export interface AppInfo {
|
package/build/@types/form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, MonthlyIncome, SalesChannel, SourceOfIncome } from './app';
|
|
1
|
+
import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, MonthlyIncome, Occupation, SalesChannel, SourceOfIncome } from './app';
|
|
2
2
|
export declare type MobileFormValues = {
|
|
3
3
|
mobile: string | null;
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -49,6 +49,8 @@ export declare type BankFormValues = {
|
|
|
49
49
|
iban: string;
|
|
50
50
|
beneficiaryName: string;
|
|
51
51
|
bankName: string;
|
|
52
|
+
bankStatementId?: string;
|
|
53
|
+
uploading?: boolean;
|
|
52
54
|
confirmPolicy: boolean;
|
|
53
55
|
};
|
|
54
56
|
export declare type TaxFormValues = {
|
|
@@ -56,6 +58,7 @@ export declare type TaxFormValues = {
|
|
|
56
58
|
confirmPolicy: false;
|
|
57
59
|
};
|
|
58
60
|
export declare type IndividualExtraFormValues = {
|
|
61
|
+
occupation: Occupation | undefined;
|
|
59
62
|
sourceIncome: SourceOfIncome | undefined;
|
|
60
63
|
monthlyIncome: MonthlyIncome | undefined;
|
|
61
64
|
employerName: string;
|
package/build/api/auth.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export declare type IDCredential = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare type CreateAuthBody = {
|
|
17
17
|
user_credentail: MobileCredential | EmailCredential | IDCredential;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
auth_type?: number;
|
|
19
|
+
email_url?: string;
|
|
20
|
+
sign_in?: boolean;
|
|
21
|
+
step_name?: string;
|
|
20
22
|
encryption_contract: Array<string>;
|
|
21
23
|
lang?: LanguageMode;
|
|
22
24
|
};
|
|
@@ -33,6 +35,21 @@ export declare type VerifyAuthBody = {
|
|
|
33
35
|
remember_me?: boolean;
|
|
34
36
|
scopes?: Array<string>;
|
|
35
37
|
};
|
|
38
|
+
export declare type VerifyOperationAuthBody = {
|
|
39
|
+
auth_token: string;
|
|
40
|
+
auth_type: number;
|
|
41
|
+
};
|
|
42
|
+
export declare type ResetPasswordCredential = {
|
|
43
|
+
otp: string;
|
|
44
|
+
new_password: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type ResetPasswordVerifyAuthBody = {
|
|
47
|
+
auth_token: string;
|
|
48
|
+
auth_type: number;
|
|
49
|
+
step_name: string;
|
|
50
|
+
user_credentail: ResetPasswordCredential;
|
|
51
|
+
encryption_contract: Array<string>;
|
|
52
|
+
};
|
|
36
53
|
export declare type CreatePasswordBody = {
|
|
37
54
|
password: string;
|
|
38
55
|
signup_token?: string;
|
|
@@ -41,7 +58,7 @@ export declare type CreatePasswordBody = {
|
|
|
41
58
|
};
|
|
42
59
|
declare const authService: {
|
|
43
60
|
createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
|
-
verifyAuth: (data: VerifyAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
|
+
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
62
|
createPassword: (data: CreatePasswordBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
46
63
|
};
|
|
47
64
|
export { authService };
|
package/build/api/axios.js
CHANGED
|
@@ -79,8 +79,7 @@ export var removeAxiosGlobalHeaders = function (arr) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
export var httpClient = function (config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
-
var data, description,
|
|
83
|
-
var _a, _b;
|
|
82
|
+
var data, _a, description, error, err_1, response, data, _b, description, error;
|
|
84
83
|
return __generator(this, function (_c) {
|
|
85
84
|
switch (_c.label) {
|
|
86
85
|
case 0:
|
|
@@ -88,19 +87,19 @@ export var httpClient = function (config) { return __awaiter(void 0, void 0, voi
|
|
|
88
87
|
return [4, instance(config)];
|
|
89
88
|
case 1:
|
|
90
89
|
data = (_c.sent()).data;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
throw new Error(description);
|
|
90
|
+
_a = (data.errors || [{}])[0], description = _a.description, error = _a.error;
|
|
91
|
+
if (description || error) {
|
|
92
|
+
throw new Error(description, error);
|
|
94
93
|
}
|
|
95
94
|
return [2, data];
|
|
96
95
|
case 2:
|
|
97
|
-
|
|
98
|
-
response =
|
|
96
|
+
err_1 = _c.sent();
|
|
97
|
+
response = err_1.response;
|
|
99
98
|
data = (response || {}).data;
|
|
100
99
|
if (typeof data === 'string')
|
|
101
100
|
throw new Error(data);
|
|
102
|
-
|
|
103
|
-
throw new Error(description || '
|
|
101
|
+
_b = ((data === null || data === void 0 ? void 0 : data.errors) || [{}])[0], description = _b.description, error = _b.error;
|
|
102
|
+
throw new Error(description || error || 'Internal server error');
|
|
104
103
|
case 3: return [2];
|
|
105
104
|
}
|
|
106
105
|
});
|
package/build/api/data.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ declare const dataService: {
|
|
|
5
5
|
getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
6
|
getSourceOfIncome: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
7
|
getMonthlyIncome: (countryCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
+
getOccupation: () => Promise<any>;
|
|
8
9
|
};
|
|
9
10
|
export { dataService };
|
package/build/api/data.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import instance from './axios';
|
|
1
|
+
import instance, { httpClient } from './axios';
|
|
2
2
|
import { ENDPOINT_PATHS } from '../constants';
|
|
3
3
|
var getChannelsOfServices = function () {
|
|
4
4
|
return instance.get("".concat(ENDPOINT_PATHS.CHANNEL));
|
|
@@ -18,12 +18,19 @@ var getSourceOfIncome = function () {
|
|
|
18
18
|
var getMonthlyIncome = function (countryCode) {
|
|
19
19
|
return instance.get("".concat(ENDPOINT_PATHS.MONTHLY_INCOME, "/").concat(countryCode));
|
|
20
20
|
};
|
|
21
|
+
var getOccupation = function () {
|
|
22
|
+
return httpClient({
|
|
23
|
+
method: 'get',
|
|
24
|
+
url: "".concat(ENDPOINT_PATHS.OCCUPATION)
|
|
25
|
+
});
|
|
26
|
+
};
|
|
21
27
|
var dataService = {
|
|
22
28
|
getChannelsOfServices: getChannelsOfServices,
|
|
23
29
|
getCustomerBases: getCustomerBases,
|
|
24
30
|
getExpectedSales: getExpectedSales,
|
|
25
31
|
getExpectedCustomerSales: getExpectedCustomerSales,
|
|
26
32
|
getSourceOfIncome: getSourceOfIncome,
|
|
27
|
-
getMonthlyIncome: getMonthlyIncome
|
|
33
|
+
getMonthlyIncome: getMonthlyIncome,
|
|
34
|
+
getOccupation: getOccupation
|
|
28
35
|
};
|
|
29
36
|
export { dataService };
|
package/build/api/entity.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
export declare type EntityInfoBody = {
|
|
3
3
|
id: string;
|
|
4
|
+
lead_id?: string;
|
|
4
5
|
activities?: Array<string>;
|
|
5
6
|
business_operation_start_at?: string;
|
|
6
7
|
channel_services?: Array<string>;
|
|
@@ -12,11 +13,13 @@ export declare type EntityInfoBody = {
|
|
|
12
13
|
agree_chargeback?: boolean;
|
|
13
14
|
agree_refund?: boolean;
|
|
14
15
|
employer_name?: string;
|
|
15
|
-
|
|
16
|
+
employer_country?: string | null;
|
|
16
17
|
source_income?: Array<string | undefined>;
|
|
17
18
|
actual_income?: string;
|
|
18
19
|
is_relative_PEP?: boolean | null;
|
|
19
20
|
is_influencer?: boolean | null;
|
|
21
|
+
is_vat_acknowledged?: boolean;
|
|
22
|
+
occupation?: string;
|
|
20
23
|
step_name: string;
|
|
21
24
|
encryption_contract?: Array<string>;
|
|
22
25
|
};
|
|
@@ -30,13 +33,22 @@ export declare type EntityBankUpdateBody = {
|
|
|
30
33
|
swift_code?: string;
|
|
31
34
|
account_number?: string;
|
|
32
35
|
};
|
|
36
|
+
is_acknowledged: boolean;
|
|
33
37
|
step_name: string;
|
|
34
38
|
encryption_contract?: Array<string>;
|
|
35
39
|
};
|
|
40
|
+
export declare type UploadFileBody = {
|
|
41
|
+
file_link_create: boolean;
|
|
42
|
+
file: File | null;
|
|
43
|
+
title: string | undefined;
|
|
44
|
+
purpose: string;
|
|
45
|
+
};
|
|
36
46
|
declare const entityService: {
|
|
37
47
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
48
|
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
39
49
|
createBankAccount: (data: EntityBankUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
40
50
|
retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
51
|
+
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
52
|
+
uploadFileInfo: (data: UploadFileBody) => Promise<any>;
|
|
41
53
|
};
|
|
42
54
|
export { entityService };
|
package/build/api/entity.js
CHANGED
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { ENDPOINT_PATHS } from '../constants';
|
|
13
|
-
import instance from './axios';
|
|
13
|
+
import instance, { httpClient } from './axios';
|
|
14
14
|
var retrieveEntityInfo = function (entity_id, config) {
|
|
15
15
|
return instance.get("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id), config);
|
|
16
16
|
};
|
|
@@ -25,10 +25,28 @@ var updateEntityInfo = function (_a, config) {
|
|
|
25
25
|
var createBankAccount = function (data, config) {
|
|
26
26
|
return instance.post("".concat(ENDPOINT_PATHS.BANK), data, config);
|
|
27
27
|
};
|
|
28
|
+
var uploadFileInfo = function (data) {
|
|
29
|
+
return httpClient({
|
|
30
|
+
method: 'post',
|
|
31
|
+
url: "".concat(ENDPOINT_PATHS.FILES_PATH),
|
|
32
|
+
data: data,
|
|
33
|
+
headers: { 'Content-Type': 'multipart/form-data' }
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
var updateIndividualInfo = function (_a) {
|
|
37
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
38
|
+
return httpClient({
|
|
39
|
+
method: 'put',
|
|
40
|
+
url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(id, "/info"),
|
|
41
|
+
data: data
|
|
42
|
+
});
|
|
43
|
+
};
|
|
28
44
|
var entityService = {
|
|
29
45
|
createEntityInfo: createEntityInfo,
|
|
30
46
|
updateEntityInfo: updateEntityInfo,
|
|
31
47
|
createBankAccount: createBankAccount,
|
|
32
|
-
retrieveEntityInfo: retrieveEntityInfo
|
|
48
|
+
retrieveEntityInfo: retrieveEntityInfo,
|
|
49
|
+
updateIndividualInfo: updateIndividualInfo,
|
|
50
|
+
uploadFileInfo: uploadFileInfo
|
|
33
51
|
};
|
|
34
52
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
2
2
|
import { ValidateOperatorBody } from './operator';
|
|
3
|
-
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody } from './auth';
|
|
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';
|
|
@@ -18,7 +18,7 @@ declare const API: {
|
|
|
18
18
|
};
|
|
19
19
|
authService: {
|
|
20
20
|
createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
|
-
verifyAuth: (data: VerifyAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
|
+
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
22
|
createPassword: (data: CreatePasswordBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
23
|
};
|
|
24
24
|
leadService: {
|
|
@@ -27,7 +27,7 @@ declare const API: {
|
|
|
27
27
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
28
|
verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
29
|
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
updateLeadIdentity: (data: LeadIdentityUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
+
updateLeadIdentity: ({ id, ...data }: LeadIdentityUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
31
|
retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
32
|
};
|
|
33
33
|
entityService: {
|
|
@@ -35,6 +35,8 @@ declare const API: {
|
|
|
35
35
|
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
36
|
createBankAccount: (data: EntityBankUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
37
37
|
retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
|
+
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
39
|
+
uploadFileInfo: (data: import("./entity").UploadFileBody) => Promise<any>;
|
|
38
40
|
};
|
|
39
41
|
availabilityServices: {
|
|
40
42
|
checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -54,11 +56,12 @@ declare const API: {
|
|
|
54
56
|
getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
55
57
|
getSourceOfIncome: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
56
58
|
getMonthlyIncome: (countryCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
59
|
+
getOccupation: () => Promise<any>;
|
|
57
60
|
};
|
|
58
61
|
individualService: {
|
|
59
62
|
getBrandList: (data: BrandListBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
60
63
|
};
|
|
61
64
|
};
|
|
62
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody };
|
|
65
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody };
|
|
63
66
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance };
|
|
64
67
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare type BrandContent = {
|
|
|
27
27
|
about?: BrandTitle;
|
|
28
28
|
};
|
|
29
29
|
declare type BrandInfo = {
|
|
30
|
+
id?: string;
|
|
30
31
|
name?: BrandTitle;
|
|
31
32
|
sector?: Array<string>;
|
|
32
33
|
website?: string;
|
|
@@ -77,6 +78,7 @@ export declare type CreateLeadBody = {
|
|
|
77
78
|
country_code: string;
|
|
78
79
|
};
|
|
79
80
|
export declare type LeadIdentityUpdateBody = {
|
|
81
|
+
id: string;
|
|
80
82
|
country_code: string;
|
|
81
83
|
identification_id: string;
|
|
82
84
|
identification_id_type: string;
|
|
@@ -90,7 +92,7 @@ declare const leadService: {
|
|
|
90
92
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
91
93
|
verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
92
94
|
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
93
|
-
updateLeadIdentity: (data: LeadIdentityUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
95
|
+
updateLeadIdentity: ({ id, ...data }: LeadIdentityUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
94
96
|
retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
95
97
|
};
|
|
96
98
|
export { leadService };
|
package/build/api/lead.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
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
|
+
};
|
|
1
12
|
import instance from './axios';
|
|
2
13
|
import { ENDPOINT_PATHS } from '../constants';
|
|
3
14
|
var createLead = function (data, config) {
|
|
@@ -15,8 +26,9 @@ var verifyLeadToken = function (data, config) {
|
|
|
15
26
|
var verifyLeadOTP = function (data, config) {
|
|
16
27
|
return instance.put("".concat(ENDPOINT_PATHS.LEAD_IDENTITY_VERIFY), data, config);
|
|
17
28
|
};
|
|
18
|
-
var updateLeadIdentity = function (
|
|
19
|
-
|
|
29
|
+
var updateLeadIdentity = function (_a, config) {
|
|
30
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
31
|
+
return instance.put("".concat(ENDPOINT_PATHS.LEAD, "/").concat(id, "/identity"), data, config);
|
|
20
32
|
};
|
|
21
33
|
var retrieveEntityList = function (leadId) {
|
|
22
34
|
return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_ENTITY_LIST, "/").concat(leadId));
|
|
@@ -240,5 +240,8 @@
|
|
|
240
240
|
"tax_success_title": "Your tax details are updated",
|
|
241
241
|
"bank_success_title": "Your bank details are updated",
|
|
242
242
|
"password_success_title": "Your password is set",
|
|
243
|
-
"bank": "bank"
|
|
243
|
+
"bank": "bank",
|
|
244
|
+
"reset_password_success_title": "لقد ارسلنا رسالة بريدية إليك",
|
|
245
|
+
"reset_password_success_description": "تحقق من بريدك الإلكتروني لإعادة تعيين كلمة المرور الخاصة بك.",
|
|
246
|
+
"license_name_label": "اسم الرخصة"
|
|
244
247
|
}
|
|
@@ -260,5 +260,8 @@
|
|
|
260
260
|
"bank_success_title": "Your bank details are updated",
|
|
261
261
|
"password_success_title": "Your password is set",
|
|
262
262
|
"account_details": "Your account details",
|
|
263
|
-
"bank": "bank"
|
|
263
|
+
"bank": "bank",
|
|
264
|
+
"reset_password_success_title": "We sent you an email",
|
|
265
|
+
"reset_password_success_description": "Check your email to reset your password.",
|
|
266
|
+
"license_name_label": "License Name"
|
|
264
267
|
}
|
|
@@ -8,5 +8,6 @@ export interface AnimationFlowProps {
|
|
|
8
8
|
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
error?: string | null;
|
|
11
|
+
screenId?: string;
|
|
11
12
|
}
|
|
12
|
-
export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error, isTapOrigin }: AnimationFlowProps): JSX.Element;
|
|
13
|
+
export default function AnimationFlow({ open, children, breakpoint, type, footer, loading, error, isTapOrigin, screenId }: AnimationFlowProps): JSX.Element;
|
|
@@ -17,7 +17,7 @@ import BottomSheet from './BottomSheet';
|
|
|
17
17
|
import Loader from './Loader';
|
|
18
18
|
import Error from './Error';
|
|
19
19
|
export default function AnimationFlow(_a) {
|
|
20
|
-
var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin;
|
|
20
|
+
var open = _a.open, children = _a.children, breakpoint = _a.breakpoint, type = _a.type, footer = _a.footer, loading = _a.loading, error = _a.error, isTapOrigin = _a.isTapOrigin, screenId = _a.screenId;
|
|
21
21
|
var theme = useTheme();
|
|
22
22
|
var matches = useMediaQuery(theme.breakpoints.down(breakpoint || 'sm'));
|
|
23
23
|
if (loading) {
|
|
@@ -32,5 +32,5 @@ export default function AnimationFlow(_a) {
|
|
|
32
32
|
if (type === 'BOTTOMSHEET') {
|
|
33
33
|
return _jsx(BottomSheet, __assign({ open: open }, { children: children }));
|
|
34
34
|
}
|
|
35
|
-
return matches ? (_jsx(BottomSheet, __assign({ open: open }, { children: children }))) : (_jsx(Dialog, __assign({ open: open, footer: footer, isTapOrigin: isTapOrigin }, { children: children })));
|
|
35
|
+
return matches ? (_jsx(BottomSheet, __assign({ open: open, screenId: screenId }, { children: children }))) : (_jsx(Dialog, __assign({ open: open, footer: footer, isTapOrigin: isTapOrigin }, { children: children })));
|
|
36
36
|
}
|
|
@@ -4,6 +4,7 @@ import 'react-spring-bottom-sheet/dist/style.css';
|
|
|
4
4
|
export interface BottomSheetProps extends MainBottomSheetProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
open: boolean;
|
|
7
|
+
screenId?: string;
|
|
7
8
|
}
|
|
8
|
-
declare const _default: React.MemoExoticComponent<({ open, children, ...rest }: BottomSheetProps) => JSX.Element>;
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ open, children, screenId, ...rest }: BottomSheetProps) => JSX.Element>;
|
|
9
10
|
export default _default;
|
|
@@ -59,13 +59,25 @@ var BottomSheetStyled = styled(BottomSheet)(function (_a) {
|
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
var BottomSheetComponent = function (_a) {
|
|
62
|
-
var open = _a.open, children = _a.children, rest = __rest(_a, ["open", "children"]);
|
|
62
|
+
var open = _a.open, children = _a.children, screenId = _a.screenId, rest = __rest(_a, ["open", "children", "screenId"]);
|
|
63
|
+
var sheetRef = React.useRef(null);
|
|
63
64
|
var getMinHeight = function (maxHeight) {
|
|
64
|
-
var
|
|
65
|
-
var height =
|
|
65
|
+
var el = document.getElementById('main-feature-container');
|
|
66
|
+
var height = el ? el.clientHeight : 0;
|
|
66
67
|
return height || maxHeight * 0.7;
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
+
React.useEffect(function () {
|
|
70
|
+
if (sheetRef.current && screenId) {
|
|
71
|
+
setTimeout(function () {
|
|
72
|
+
var _a, _b;
|
|
73
|
+
(_b = (_a = sheetRef === null || sheetRef === void 0 ? void 0 : sheetRef.current) === null || _a === void 0 ? void 0 : _a.snapTo) === null || _b === void 0 ? void 0 : _b.call(_a, function (_a) {
|
|
74
|
+
var maxHeight = _a.maxHeight;
|
|
75
|
+
return getMinHeight(maxHeight);
|
|
76
|
+
});
|
|
77
|
+
}, 500);
|
|
78
|
+
}
|
|
79
|
+
}, [screenId]);
|
|
80
|
+
return (_jsx(BottomSheetStyled, __assign({ ref: sheetRef, open: open, snapPoints: function (_a) {
|
|
69
81
|
var maxHeight = _a.maxHeight;
|
|
70
82
|
return [getMinHeight(maxHeight), maxHeight * 0.95];
|
|
71
83
|
} }, rest, { children: children })));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import Box from '@mui/material/Box';
|
|
14
|
+
import { alpha, styled } from '@mui/material/styles';
|
|
15
|
+
import Input from '../Input';
|
|
16
|
+
import Text from '../Text';
|
|
17
|
+
import { useDropzone } from 'react-dropzone';
|
|
18
|
+
var BoxStyled = styled(Box)(function (_a) {
|
|
19
|
+
var theme = _a.theme;
|
|
20
|
+
return (__assign(__assign({ direction: theme.direction }, theme.typography.subtitle2), { color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightRegular, background: theme.palette.background.default, padding: theme.spacing(1.5, 2.5, 1.5), border: "1px dashed ".concat(alpha(theme.palette.divider, 0.8)), width: '50%', cursor: 'pointer' }));
|
|
21
|
+
});
|
|
22
|
+
var UploadInputStyled = styled(Input)(function () { return ({
|
|
23
|
+
display: 'none'
|
|
24
|
+
}); });
|
|
25
|
+
var DragAndDrop = function (_a) {
|
|
26
|
+
var title = _a.title, onSuccess = _a.onSuccess;
|
|
27
|
+
var _b = useDropzone({
|
|
28
|
+
maxFiles: 1,
|
|
29
|
+
noKeyboard: true,
|
|
30
|
+
noClick: true,
|
|
31
|
+
multiple: false,
|
|
32
|
+
accept: { 'image/jpeg': ['.jpeg'], 'image/png': ['.png'], 'image/jpg': ['.jpg'], 'application/pdf': ['.pdf'] },
|
|
33
|
+
onDrop: function (files) {
|
|
34
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(files === null || files === void 0 ? void 0 : files[0]);
|
|
35
|
+
}
|
|
36
|
+
}), getRootProps = _b.getRootProps, getInputProps = _b.getInputProps;
|
|
37
|
+
return (_jsxs(BoxStyled, __assign({}, getRootProps({ className: 'dropzone' }), { children: [_jsx(Text, __assign({ sx: { fontSize: '12px' } }, { children: title })), _jsx(UploadInputStyled, { inputProps: __assign({}, getInputProps()) })] })));
|
|
38
|
+
};
|
|
39
|
+
export default DragAndDrop;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { styled } from '@mui/material/styles';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import Box from '@mui/material/Box';
|
|
16
|
+
import Input from '../../components/Input';
|
|
17
|
+
import Text from '../Text';
|
|
18
|
+
var UploadInputStyled = styled(Input)(function () { return ({
|
|
19
|
+
display: 'none'
|
|
20
|
+
}); });
|
|
21
|
+
var UploadBoxStyled = styled(Box)(function (_a) {
|
|
22
|
+
var theme = _a.theme;
|
|
23
|
+
return (__assign(__assign({}, theme.typography.caption), { background: theme.palette.primary.main, color: theme.palette.common.white, fontWeight: theme.typography.fontWeightRegular, padding: theme.spacing(1.5, 2.5, 1.5), cursor: 'pointer', width: '50%' }));
|
|
24
|
+
});
|
|
25
|
+
var UploadInput = function (_a) {
|
|
26
|
+
var title = _a.title, onChange = _a.onChange;
|
|
27
|
+
var fileRef = React.useRef(null);
|
|
28
|
+
var openDeviceMedia = function () {
|
|
29
|
+
var _a;
|
|
30
|
+
(_a = fileRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
31
|
+
};
|
|
32
|
+
var onFileChange = function (event) {
|
|
33
|
+
if (event.target.files)
|
|
34
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event.target.files[0]);
|
|
35
|
+
};
|
|
36
|
+
return (_jsxs(UploadBoxStyled, __assign({ onClick: openDeviceMedia }, { children: [_jsx(Text, __assign({ sx: { fontSize: '12px' } }, { children: title })), _jsx(UploadInputStyled, { onChange: onFileChange, id: 'upload-file-input', inputRef: fileRef, type: 'file', inputProps: { accept: '.png,.jpg,.pdf,.jpeg' } })] })));
|
|
37
|
+
};
|
|
38
|
+
export default UploadInput;
|
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: string;
|
|
12
11
|
LEAD_IDENTITY_VERIFY: string;
|
|
13
12
|
RETRIEVE_ENTITY_LIST: string;
|
|
14
13
|
ENTITY: string;
|
|
@@ -26,4 +25,7 @@ export declare const ENDPOINT_PATHS: {
|
|
|
26
25
|
BANK: string;
|
|
27
26
|
IBAN_BANK: string;
|
|
28
27
|
BRAND_LIST: string;
|
|
28
|
+
OCCUPATION: string;
|
|
29
|
+
INDIVIDUAL: string;
|
|
30
|
+
FILES_PATH: string;
|
|
29
31
|
};
|
package/build/constants/api.js
CHANGED
|
@@ -7,10 +7,10 @@ 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_PATH = '/lead/identity';
|
|
11
10
|
var LEAD_IDENTITY_VERIFY_PATH = 'lead/identity/verify';
|
|
12
11
|
var RETRIEVE_ENTITY_LIST_PATH = '/lead/entity/list';
|
|
13
12
|
var ENTITY_PATH = '/entity';
|
|
13
|
+
var INDIVIDUAL_PATH = '/individual';
|
|
14
14
|
var BANK_PATH = '/entity/bankaccount';
|
|
15
15
|
var IBAN_PATH = '/iban';
|
|
16
16
|
var CHECK_EMAIL = '/lead/identity/emailcheck';
|
|
@@ -23,8 +23,10 @@ var EXPECTED_CUSTOMERS_PATH = '/v2/expectedCustomers';
|
|
|
23
23
|
var SIGNUP_PATH = '/signup';
|
|
24
24
|
var SOURCE_INCOME_PATH = '/v2/sourceOfIncome';
|
|
25
25
|
var MONTHLY_INCOME_PATH = '/v2/monthlyIncome';
|
|
26
|
+
var OCCUPATION_PATH = '/v2/occupation';
|
|
26
27
|
var BRAND_LIST_PATH = '/brand/list';
|
|
27
28
|
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/locale.json';
|
|
29
|
+
var FILES = '/files';
|
|
28
30
|
export var ENDPOINT_PATHS = {
|
|
29
31
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
30
32
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
@@ -35,7 +37,6 @@ export var ENDPOINT_PATHS = {
|
|
|
35
37
|
OPERATOR: OPERATOR_PATH,
|
|
36
38
|
AUTH: AUTH_PATH,
|
|
37
39
|
LEAD: LEAD_PATH,
|
|
38
|
-
LEAD_IDENTITY: LEAD_IDENTITY_PATH,
|
|
39
40
|
LEAD_IDENTITY_VERIFY: LEAD_IDENTITY_VERIFY_PATH,
|
|
40
41
|
RETRIEVE_ENTITY_LIST: RETRIEVE_ENTITY_LIST_PATH,
|
|
41
42
|
ENTITY: ENTITY_PATH,
|
|
@@ -52,5 +53,8 @@ export var ENDPOINT_PATHS = {
|
|
|
52
53
|
MONTHLY_INCOME: MONTHLY_INCOME_PATH,
|
|
53
54
|
BANK: BANK_PATH,
|
|
54
55
|
IBAN_BANK: IBAN_PATH,
|
|
55
|
-
BRAND_LIST: BRAND_LIST_PATH
|
|
56
|
+
BRAND_LIST: BRAND_LIST_PATH,
|
|
57
|
+
OCCUPATION: OCCUPATION_PATH,
|
|
58
|
+
INDIVIDUAL: INDIVIDUAL_PATH,
|
|
59
|
+
FILES_PATH: FILES
|
|
56
60
|
};
|
package/build/constants/app.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ export declare const PASSWORD_STEP_NAMES: {
|
|
|
110
110
|
PHONE_AUTH: string;
|
|
111
111
|
PASSWORD_CREATE: string;
|
|
112
112
|
PASSWORD_SUCCESS: string;
|
|
113
|
+
RESET_PASSWORD: string;
|
|
113
114
|
};
|
|
114
115
|
export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
115
116
|
export declare const ENCRYPTION_FLAG = "encryption_contract";
|
|
@@ -136,3 +137,7 @@ export declare const OTHER_CR_LICENSE: {
|
|
|
136
137
|
};
|
|
137
138
|
type: BusinessType;
|
|
138
139
|
};
|
|
140
|
+
export declare const PASSWORD_OPERATION_TYPE: {
|
|
141
|
+
SET_PASSWORD: string;
|
|
142
|
+
RESET_PASSWORD: string;
|
|
143
|
+
};
|