@tap-payments/auth-jsconnect 1.0.31 → 1.0.34
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 -1
- package/build/@types/form.d.ts +23 -1
- package/build/api/account.d.ts +15 -0
- package/build/api/account.js +9 -0
- package/build/api/axios.d.ts +2 -0
- package/build/api/axios.js +10 -0
- package/build/api/data.d.ts +6 -0
- package/build/api/data.js +17 -0
- package/build/api/entity.d.ts +20 -0
- package/build/api/entity.js +9 -0
- package/build/api/index.d.ts +22 -2
- package/build/api/index.js +9 -1
- package/build/api/lead.d.ts +22 -0
- package/build/api/lead.js +21 -1
- package/build/app/settings.js +12 -18
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/Input/Input.js +3 -2
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/components/Warning/Warning.js +13 -2
- package/build/constants/api.d.ts +8 -0
- package/build/constants/api.js +17 -1
- package/build/constants/app.d.ts +11 -1
- package/build/constants/app.js +11 -1
- package/build/constants/assets.js +1 -1
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/business/businessStore.d.ts +73 -4
- package/build/features/app/business/businessStore.js +500 -7
- package/build/features/app/connect/connectStore.d.ts +11 -3
- package/build/features/app/connect/connectStore.js +88 -43
- package/build/features/bank/screens/BankDetails/validation.js +2 -1
- package/build/features/business/Business.js +7 -3
- package/build/features/business/screens/Activities/Activities.js +13 -13
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +14 -4
- package/build/features/business/screens/Activities/OperationStartDate.js +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +11 -2
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -8
- package/build/features/business/screens/BusinessType/BusinessType.js +25 -27
- package/build/features/business/screens/Confirm/Confirm.js +10 -11
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/Customers.js +3 -2
- package/build/features/business/screens/IDBOD/DOB.js +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.js +19 -12
- package/build/features/business/screens/OTP/OTP.d.ts +2 -5
- package/build/features/business/screens/OTP/OTP.js +18 -15
- package/build/features/business/screens/OTP/OTPInput.js +20 -5
- package/build/features/business/screens/Success/Success.js +6 -0
- package/build/features/business/screens/Verify/OTPInput.js +7 -3
- package/build/features/business/screens/Verify/Verify.d.ts +1 -9
- package/build/features/business/screens/Verify/Verify.js +16 -17
- package/build/features/business/screens/Verify/index.d.ts +1 -2
- package/build/features/connect/screens/Individual/Individual.js +6 -1
- package/build/features/connect/screens/Individual/Name.js +10 -1
- package/build/features/connect/screens/Individual/validation.js +3 -2
- package/build/features/connect/screens/Merchant/Merchant.js +6 -1
- package/build/features/connect/screens/Mobile/Mobile.js +6 -1
- package/build/features/connect/screens/NID/NID.js +6 -1
- package/build/features/connect/screens/OTP/OTP.js +6 -1
- package/build/features/connect/screens/Password/Password.js +7 -2
- package/build/features/featuresScreens.js +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -4
- package/build/features/shared/Button/AbsherButton.js +1 -1
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/hooks/useAppConfig.js +99 -24
- package/build/theme/palette.js +4 -0
- package/build/utils/string.d.ts +25 -0
- package/build/utils/string.js +56 -0
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -145,6 +145,8 @@ export interface BrowserDetails {
|
|
|
145
145
|
export interface Connection {
|
|
146
146
|
ip: string;
|
|
147
147
|
mac: string;
|
|
148
|
+
latitude?: number;
|
|
149
|
+
longitude?: number;
|
|
148
150
|
}
|
|
149
151
|
export interface Entry {
|
|
150
152
|
name: string;
|
|
@@ -156,7 +158,9 @@ export interface DeviceInfo {
|
|
|
156
158
|
source: 'browser|app';
|
|
157
159
|
device: DeviceDetails;
|
|
158
160
|
browser: BrowserDetails;
|
|
159
|
-
app: AppInfo
|
|
161
|
+
app: AppInfo & {
|
|
162
|
+
language?: string;
|
|
163
|
+
};
|
|
160
164
|
connection: Connection;
|
|
161
165
|
entry: Entry;
|
|
162
166
|
}
|
package/build/@types/form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryCode } from './app';
|
|
1
|
+
import { Activity, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, SalesChannel } from './app';
|
|
2
2
|
export declare type MobileFormValues = {
|
|
3
3
|
mobile: string | null;
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -28,3 +28,25 @@ export declare type BrandFormValues = {
|
|
|
28
28
|
};
|
|
29
29
|
termAndConditionChecked: boolean;
|
|
30
30
|
};
|
|
31
|
+
export declare type BusinessTypeFormValues = {
|
|
32
|
+
businessType: string;
|
|
33
|
+
flNumber: string;
|
|
34
|
+
crNumber: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type BusinessInfoFormValues = {
|
|
37
|
+
licenseNumber: string;
|
|
38
|
+
brandName: string;
|
|
39
|
+
legalName: string;
|
|
40
|
+
};
|
|
41
|
+
export declare type ActivitiesFormValues = {
|
|
42
|
+
activities: Array<Activity> | undefined;
|
|
43
|
+
salesChannels: Array<SalesChannel>;
|
|
44
|
+
operationStartDate: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type CustomersFormValues = {
|
|
47
|
+
customerLocations: Array<CustomerLocation>;
|
|
48
|
+
expectedCustomers: ExpectedCustomer | undefined;
|
|
49
|
+
expectedSalesRange: ExpectedSaleRange | undefined;
|
|
50
|
+
refundPolicy: boolean;
|
|
51
|
+
transactionPolicy: boolean;
|
|
52
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
export declare type CreateAccountBody = {
|
|
3
|
+
lead_id: string;
|
|
4
|
+
notify: {
|
|
5
|
+
email: boolean;
|
|
6
|
+
phone: boolean;
|
|
7
|
+
};
|
|
8
|
+
skip_legacy: boolean;
|
|
9
|
+
is_acknowledged: boolean;
|
|
10
|
+
step_name: string;
|
|
11
|
+
};
|
|
12
|
+
declare const accountService: {
|
|
13
|
+
createAccount: (data: CreateAccountBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
};
|
|
15
|
+
export { accountService };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import instance from './axios';
|
|
2
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
3
|
+
var createAccount = function (data, config) {
|
|
4
|
+
return instance.post("".concat(ENDPOINT_PATHS.CREATE_ACCOUNT, "/").concat(data.lead_id), data, config);
|
|
5
|
+
};
|
|
6
|
+
var accountService = {
|
|
7
|
+
createAccount: createAccount
|
|
8
|
+
};
|
|
9
|
+
export { accountService };
|
package/build/api/axios.d.ts
CHANGED
package/build/api/axios.js
CHANGED
|
@@ -31,4 +31,14 @@ var encryptionContractTransformer = function (config) {
|
|
|
31
31
|
}
|
|
32
32
|
return config;
|
|
33
33
|
};
|
|
34
|
+
export var setAxiosGlobalHeaders = function (headers) {
|
|
35
|
+
Object.keys(headers).forEach(function (key) {
|
|
36
|
+
instance.defaults.headers.common[key] = headers[key];
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
export var removeAxiosGlobalHeaders = function (arr) {
|
|
40
|
+
arr.forEach(function (key) {
|
|
41
|
+
delete instance.defaults.headers.common[key];
|
|
42
|
+
});
|
|
43
|
+
};
|
|
34
44
|
export default instance;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const dataService: {
|
|
2
|
+
getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
+
getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
};
|
|
6
|
+
export { dataService };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import instance from './axios';
|
|
2
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
3
|
+
var getChannelsOfServices = function () {
|
|
4
|
+
return instance.get("".concat(ENDPOINT_PATHS.CHANNEL));
|
|
5
|
+
};
|
|
6
|
+
var getCustomerBases = function () {
|
|
7
|
+
return instance.get("".concat(ENDPOINT_PATHS.CUSTOMER_BASES));
|
|
8
|
+
};
|
|
9
|
+
var getExpectedSales = function () {
|
|
10
|
+
return instance.get("".concat(ENDPOINT_PATHS.SALES));
|
|
11
|
+
};
|
|
12
|
+
var dataService = {
|
|
13
|
+
getChannelsOfServices: getChannelsOfServices,
|
|
14
|
+
getCustomerBases: getCustomerBases,
|
|
15
|
+
getExpectedSales: getExpectedSales
|
|
16
|
+
};
|
|
17
|
+
export { dataService };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Activity, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, SalesChannel } from '../@types';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
|
+
export declare type EntityInfoUpdateBody = {
|
|
4
|
+
activities?: Array<Activity>;
|
|
5
|
+
business_operation_start_at?: string;
|
|
6
|
+
channel_services?: Array<SalesChannel>;
|
|
7
|
+
physical_store_available?: boolean;
|
|
8
|
+
yearly_sales_range?: ExpectedSaleRange;
|
|
9
|
+
customers_served_monthly?: ExpectedCustomer;
|
|
10
|
+
customers_base?: Array<CustomerLocation>;
|
|
11
|
+
vat_id?: string;
|
|
12
|
+
agree_chargeback?: boolean;
|
|
13
|
+
agree_refund?: boolean;
|
|
14
|
+
step_name: string;
|
|
15
|
+
encryption_contract?: Array<string>;
|
|
16
|
+
};
|
|
17
|
+
declare const entityService: {
|
|
18
|
+
updateEntityInfo: (data: EntityInfoUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
};
|
|
20
|
+
export { entityService };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
2
|
+
import instance from './axios';
|
|
3
|
+
var updateEntityInfo = function (data, config) {
|
|
4
|
+
return instance.post("".concat(ENDPOINT_PATHS.ENTITY), data, config);
|
|
5
|
+
};
|
|
6
|
+
var entityService = {
|
|
7
|
+
updateEntityInfo: updateEntityInfo
|
|
8
|
+
};
|
|
9
|
+
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
2
|
import { ValidateOperatorBody } from './operator';
|
|
2
3
|
import { CreateAuthBody, VerifyAuthBody } from './auth';
|
|
3
|
-
import { UpdateLeadBody, LeadVerifyBody } from './lead';
|
|
4
|
+
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
4
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
|
+
import { EntityInfoUpdateBody } from './entity';
|
|
7
|
+
import { CreateAccountBody } from './account';
|
|
5
8
|
declare const API: {
|
|
6
9
|
ipService: {
|
|
7
10
|
getIP: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -18,9 +21,17 @@ declare const API: {
|
|
|
18
21
|
verifyAuth: (data: VerifyAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
22
|
};
|
|
20
23
|
leadService: {
|
|
24
|
+
createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
25
|
updateLead: (data: UpdateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
26
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
27
|
verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
|
+
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
updateLeadIdentity: (data: LeadIdentityUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
+
retrieveCRInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
+
retrieveFLInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
|
+
};
|
|
33
|
+
entityService: {
|
|
34
|
+
updateEntityInfo: (data: EntityInfoUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
35
|
};
|
|
25
36
|
availabilityServices: {
|
|
26
37
|
checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -29,6 +40,15 @@ declare const API: {
|
|
|
29
40
|
firebaseService: {
|
|
30
41
|
getLocale: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
42
|
};
|
|
43
|
+
accountService: {
|
|
44
|
+
createAccount: (data: CreateAccountBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
|
+
};
|
|
46
|
+
dataService: {
|
|
47
|
+
getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
48
|
+
getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
49
|
+
getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
50
|
+
};
|
|
32
51
|
};
|
|
33
|
-
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, UpdateLeadBody, LeadVerifyBody, CheckEmailBody, CheckBrandBody };
|
|
52
|
+
export type { ValidateOperatorBody, CreateAuthBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoUpdateBody, CreateAccountBody };
|
|
53
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
34
54
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { setAxiosGlobalHeaders, removeAxiosGlobalHeaders } from './axios';
|
|
1
2
|
import { ipService } from './ip';
|
|
2
3
|
import { operatorService } from './operator';
|
|
3
4
|
import { countryService } from './country';
|
|
@@ -5,13 +6,20 @@ import { authService } from './auth';
|
|
|
5
6
|
import { leadService } from './lead';
|
|
6
7
|
import availabilityServices from './availabilityServices';
|
|
7
8
|
import { firebaseService } from './firebase';
|
|
9
|
+
import { entityService } from './entity';
|
|
10
|
+
import { accountService } from './account';
|
|
11
|
+
import { dataService } from './data';
|
|
8
12
|
var API = {
|
|
9
13
|
ipService: ipService,
|
|
10
14
|
operatorService: operatorService,
|
|
11
15
|
countryService: countryService,
|
|
12
16
|
authService: authService,
|
|
13
17
|
leadService: leadService,
|
|
18
|
+
entityService: entityService,
|
|
14
19
|
availabilityServices: availabilityServices,
|
|
15
|
-
firebaseService: firebaseService
|
|
20
|
+
firebaseService: firebaseService,
|
|
21
|
+
accountService: accountService,
|
|
22
|
+
dataService: dataService
|
|
16
23
|
};
|
|
24
|
+
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders };
|
|
17
25
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -61,9 +61,31 @@ export declare type LeadVerifyBody = {
|
|
|
61
61
|
verify_token: string;
|
|
62
62
|
service_name: string;
|
|
63
63
|
};
|
|
64
|
+
export interface LeadOTPVerifyBody extends LeadVerifyBody {
|
|
65
|
+
data: string;
|
|
66
|
+
step_name: string;
|
|
67
|
+
encryption_contract: Array<string>;
|
|
68
|
+
}
|
|
69
|
+
export declare type CreateLeadBody = {
|
|
70
|
+
individual_id: string;
|
|
71
|
+
country_code: string;
|
|
72
|
+
};
|
|
73
|
+
export declare type LeadIdentityUpdateBody = {
|
|
74
|
+
country_code: string;
|
|
75
|
+
identification_id: string;
|
|
76
|
+
identification_id_type: string;
|
|
77
|
+
date_of_birth: string;
|
|
78
|
+
step_name: string;
|
|
79
|
+
encryption_contract: Array<string>;
|
|
80
|
+
};
|
|
64
81
|
declare const leadService: {
|
|
82
|
+
createLead: (data: CreateLeadBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
65
83
|
updateLead: (data: UpdateLeadBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
66
84
|
retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
67
85
|
verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
86
|
+
verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
87
|
+
updateLeadIdentity: (data: LeadIdentityUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
88
|
+
retrieveCRInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
89
|
+
retrieveFLInfos: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
68
90
|
};
|
|
69
91
|
export { leadService };
|
package/build/api/lead.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import instance from './axios';
|
|
2
2
|
import { ENDPOINT_PATHS } from '../constants';
|
|
3
|
+
var createLead = function (data, config) {
|
|
4
|
+
return instance.post("".concat(ENDPOINT_PATHS.LEAD), data, config);
|
|
5
|
+
};
|
|
3
6
|
var updateLead = function (data, config) {
|
|
4
7
|
return instance.put("".concat(ENDPOINT_PATHS.LEAD), data, config);
|
|
5
8
|
};
|
|
@@ -9,9 +12,26 @@ var retrieveLead = function (leadId) {
|
|
|
9
12
|
var verifyLeadToken = function (data, config) {
|
|
10
13
|
return instance.put("".concat(ENDPOINT_PATHS.LEAD_IDENTITY_VERIFY), data, config);
|
|
11
14
|
};
|
|
15
|
+
var verifyLeadOTP = function (data, config) {
|
|
16
|
+
return instance.put("".concat(ENDPOINT_PATHS.LEAD_IDENTITY_VERIFY), data, config);
|
|
17
|
+
};
|
|
18
|
+
var updateLeadIdentity = function (data, config) {
|
|
19
|
+
return instance.put("".concat(ENDPOINT_PATHS.LEAD_IDENTITY), data, config);
|
|
20
|
+
};
|
|
21
|
+
var retrieveCRInfos = function (leadId) {
|
|
22
|
+
return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_CR, "/").concat(leadId));
|
|
23
|
+
};
|
|
24
|
+
var retrieveFLInfos = function (leadId) {
|
|
25
|
+
return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_FL, "/").concat(leadId));
|
|
26
|
+
};
|
|
12
27
|
var leadService = {
|
|
28
|
+
createLead: createLead,
|
|
13
29
|
updateLead: updateLead,
|
|
14
30
|
retrieveLead: retrieveLead,
|
|
15
|
-
verifyLeadToken: verifyLeadToken
|
|
31
|
+
verifyLeadToken: verifyLeadToken,
|
|
32
|
+
verifyLeadOTP: verifyLeadOTP,
|
|
33
|
+
updateLeadIdentity: updateLeadIdentity,
|
|
34
|
+
retrieveCRInfos: retrieveCRInfos,
|
|
35
|
+
retrieveFLInfos: retrieveFLInfos
|
|
16
36
|
};
|
|
17
37
|
export { leadService };
|
package/build/app/settings.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
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
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -59,7 +48,7 @@ export var getClientIp = createAsyncThunk('getClientIp', function () { return __
|
|
|
59
48
|
case 0: return [4, API.ipService.getIP()];
|
|
60
49
|
case 1:
|
|
61
50
|
data = (_a.sent()).data;
|
|
62
|
-
return [2, data
|
|
51
|
+
return [2, data];
|
|
63
52
|
}
|
|
64
53
|
});
|
|
65
54
|
}); });
|
|
@@ -181,7 +170,7 @@ export var settingsSlice = createSlice({
|
|
|
181
170
|
throw new Error('On error function is required');
|
|
182
171
|
if (!onFlowCompleted)
|
|
183
172
|
throw new Error('On flow completed function is required');
|
|
184
|
-
state.data.appConfig =
|
|
173
|
+
state.data.appConfig = action.payload;
|
|
185
174
|
}
|
|
186
175
|
},
|
|
187
176
|
extraReducers: function (builder) {
|
|
@@ -193,7 +182,10 @@ export var settingsSlice = createSlice({
|
|
|
193
182
|
.addCase(getClientIp.fulfilled, function (state, action) {
|
|
194
183
|
state.error = null;
|
|
195
184
|
state.loading = false;
|
|
196
|
-
|
|
185
|
+
var _a = action.payload, ip = _a.ip, latitude = _a.latitude, longitude = _a.longitude;
|
|
186
|
+
state.data.deviceInfo.connection.ip = ip;
|
|
187
|
+
state.data.deviceInfo.connection.latitude = latitude;
|
|
188
|
+
state.data.deviceInfo.connection.longitude = longitude;
|
|
197
189
|
})
|
|
198
190
|
.addCase(getClientIp.rejected, function (state, action) {
|
|
199
191
|
state.error = action.error.message;
|
|
@@ -204,12 +196,14 @@ export var settingsSlice = createSlice({
|
|
|
204
196
|
state.error = null;
|
|
205
197
|
})
|
|
206
198
|
.addCase(getBrowserFingerPrint.fulfilled, function (state, action) {
|
|
207
|
-
var _a, _b, _c;
|
|
208
199
|
state.loading = false;
|
|
209
200
|
state.error = null;
|
|
210
|
-
|
|
211
|
-
state.data.deviceInfo.app =
|
|
212
|
-
|
|
201
|
+
var _a = action.payload, appInfo = _a.appInfo, client = _a.client, device = _a.device, fingerPrint = _a.fingerPrint, os = _a.os;
|
|
202
|
+
state.data.deviceInfo.app.language = state.data.appConfig.language || 'en';
|
|
203
|
+
state.data.deviceInfo.app.name = appInfo.name;
|
|
204
|
+
state.data.deviceInfo.app.version = appInfo.version || '2.0.0';
|
|
205
|
+
state.data.deviceInfo.app.identifier = appInfo.identifier || 'auth-connect-demo';
|
|
206
|
+
state.data.deviceInfo.browser.browser_id = fingerPrint === null || fingerPrint === void 0 ? void 0 : fingerPrint.visitorId;
|
|
213
207
|
state.data.deviceInfo.browser.name = (client === null || client === void 0 ? void 0 : client.name) || '';
|
|
214
208
|
state.data.deviceInfo.browser.user_agent = window.navigator.userAgent;
|
|
215
209
|
state.data.deviceInfo.browser.version = (client === null || client === void 0 ? void 0 : client.version) || '';
|
|
@@ -5,7 +5,7 @@ export interface InputFieldProps extends InputProps {
|
|
|
5
5
|
hide?: boolean;
|
|
6
6
|
startAdornment?: React.ReactNode;
|
|
7
7
|
endAdornment?: React.ReactNode;
|
|
8
|
-
warningType?: 'alert' | 'error';
|
|
8
|
+
warningType?: 'alert' | 'error' | 'hint';
|
|
9
9
|
warningMessage?: string;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: React.MemoExoticComponent<{
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { memo } from 'react';
|
|
24
|
+
import React, { memo } from 'react';
|
|
25
25
|
import Input from '@mui/material/Input';
|
|
26
26
|
import Collapse from '../Collapse';
|
|
27
27
|
import Warning from '../Warning';
|
|
@@ -65,6 +65,7 @@ var InputStyled = styled(Input)(function (_a) {
|
|
|
65
65
|
});
|
|
66
66
|
var InputField = function (_a) {
|
|
67
67
|
var onEnterPressed = _a.onEnterPressed, hide = _a.hide, endAdornment = _a.endAdornment, startAdornment = _a.startAdornment, warningType = _a.warningType, warningMessage = _a.warningMessage, rest = __rest(_a, ["onEnterPressed", "hide", "endAdornment", "startAdornment", "warningType", "warningMessage"]);
|
|
68
|
+
var _b = React.useState('alert'), warning = _b[0], setWarning = _b[1];
|
|
68
69
|
var onKeyPress = function (e) {
|
|
69
70
|
var _a;
|
|
70
71
|
if (e.key === 'Enter')
|
|
@@ -73,7 +74,7 @@ var InputField = function (_a) {
|
|
|
73
74
|
};
|
|
74
75
|
if (!rest.defaultValue)
|
|
75
76
|
delete rest.defaultValue;
|
|
76
|
-
return (_jsxs(Collapse, __assign({ in: !hide }, { children: [_jsx(InputStyled, __assign({ onKeyPress: onKeyPress, endAdornment: endAdornment, startAdornment: startAdornment }, rest)), _jsx(Collapse, __assign({ in: !!warningMessage, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType:
|
|
77
|
+
return (_jsxs(Collapse, __assign({ in: !hide }, { children: [_jsx(InputStyled, __assign({ onKeyPress: onKeyPress, onFocus: function () { return setWarning('hint'); }, onBlur: function () { return setWarning(warningType); }, endAdornment: endAdornment, startAdornment: startAdornment }, rest)), _jsx(Collapse, __assign({ in: !!warningMessage, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType: warning }, { children: warningMessage })) }))] })));
|
|
77
78
|
};
|
|
78
79
|
InputField.defaultProps = {
|
|
79
80
|
hide: false,
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { SlideProps as MUISlideProps } from '@mui/material/Slide';
|
|
3
3
|
export interface SlideProps extends MUISlideProps {
|
|
4
4
|
}
|
|
5
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
|
5
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "timeout" | "in" | "mountOnEnter" | "unmountOnExit" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
|
|
6
6
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
3
|
export interface WarningProps extends BoxProps {
|
|
4
4
|
children: string | undefined;
|
|
5
|
-
warningType?: 'alert' | 'error';
|
|
5
|
+
warningType?: 'alert' | 'error' | 'hint';
|
|
6
6
|
}
|
|
7
7
|
declare const _default: React.MemoExoticComponent<{
|
|
8
8
|
({ children, warningType, ...rest }: WarningProps): JSX.Element;
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
26
|
import Box from '@mui/material/Box';
|
|
@@ -32,9 +32,20 @@ var AlertStyled = styled(Box)(function (_a) {
|
|
|
32
32
|
var theme = _a.theme;
|
|
33
33
|
return (__assign({ background: theme.palette.warning.dark, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', borderColor: theme.palette.warning.main, color: theme.palette.warning.light }, theme.typography.caption));
|
|
34
34
|
});
|
|
35
|
+
var HintStyled = styled(Box)(function (_a) {
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return (__assign({ background: theme.palette.info.light, paddingBlock: theme.spacing(1.5), paddingInlineStart: theme.spacing(2.5), border: '0.5px solid', borderColor: theme.palette.info.light, color: theme.palette.info.main }, theme.typography.caption));
|
|
38
|
+
});
|
|
35
39
|
var WarningComponent = function (_a) {
|
|
36
40
|
var children = _a.children, warningType = _a.warningType, rest = __rest(_a, ["children", "warningType"]);
|
|
37
|
-
|
|
41
|
+
if (warningType === 'alert')
|
|
42
|
+
return _jsx(AlertStyled, __assign({}, rest, { children: children }));
|
|
43
|
+
if (warningType === 'error')
|
|
44
|
+
return _jsx(ErrorStyled, __assign({}, rest, { children: children }));
|
|
45
|
+
if (warningType === 'hint')
|
|
46
|
+
return _jsx(HintStyled, __assign({}, rest, { children: children }));
|
|
47
|
+
else
|
|
48
|
+
return _jsx(_Fragment, {});
|
|
38
49
|
};
|
|
39
50
|
WarningComponent.defaultProps = {
|
|
40
51
|
warningType: 'error'
|
package/build/constants/api.d.ts
CHANGED
|
@@ -6,8 +6,16 @@ export declare const ENDPOINT_PATHS: {
|
|
|
6
6
|
OPERATOR: string;
|
|
7
7
|
AUTH: string;
|
|
8
8
|
LEAD: string;
|
|
9
|
+
LEAD_IDENTITY: string;
|
|
9
10
|
LEAD_IDENTITY_VERIFY: string;
|
|
11
|
+
RETRIEVE_CR: string;
|
|
12
|
+
RETRIEVE_FL: string;
|
|
13
|
+
ENTITY: string;
|
|
10
14
|
CHECK_EMAIL: string;
|
|
11
15
|
CHECK_BRAND: string;
|
|
12
16
|
FIREBASE_URL: string;
|
|
17
|
+
CREATE_ACCOUNT: string;
|
|
18
|
+
CHANNEL: string;
|
|
19
|
+
CUSTOMER_BASES: string;
|
|
20
|
+
SALES: string;
|
|
13
21
|
};
|
package/build/constants/api.js
CHANGED
|
@@ -5,9 +5,17 @@ var IP_PATH = '/ip';
|
|
|
5
5
|
var OPERATOR_PATH = '/operator';
|
|
6
6
|
var AUTH_PATH = '/auth';
|
|
7
7
|
var LEAD_PATH = '/lead';
|
|
8
|
+
var LEAD_IDENTITY_PATH = '/lead/identity';
|
|
8
9
|
var LEAD_IDENTITY_VERIFY_PATH = 'lead/identity/verify';
|
|
10
|
+
var RETRIEVE_CR_PATH = '/lead/crlist';
|
|
11
|
+
var RETRIEVE_FL_PATH = '/lead/fllist';
|
|
12
|
+
var ENTITY_PATH = '/entity';
|
|
9
13
|
var CHECK_EMAIL = '/lead/identity/emailcheck';
|
|
10
14
|
var CHECK_BRAND = 'lead/profile/profile_name';
|
|
15
|
+
var CREATE_ACCOUNT_PATH = '/account/create';
|
|
16
|
+
var CHANNEL_PATH = '/channel';
|
|
17
|
+
var CUSTOMER_BASES_PATH = '/customerBases';
|
|
18
|
+
var SALES_PATH = '/sales';
|
|
11
19
|
var FIREBASE_URL = 'https://goconnect-195cd-default-rtdb.asia-southeast1.firebasedatabase.app/sandbox/local.json';
|
|
12
20
|
export var ENDPOINT_PATHS = {
|
|
13
21
|
BASE_URL: API_BASE_URL,
|
|
@@ -17,8 +25,16 @@ export var ENDPOINT_PATHS = {
|
|
|
17
25
|
OPERATOR: OPERATOR_PATH,
|
|
18
26
|
AUTH: AUTH_PATH,
|
|
19
27
|
LEAD: LEAD_PATH,
|
|
28
|
+
LEAD_IDENTITY: LEAD_IDENTITY_PATH,
|
|
20
29
|
LEAD_IDENTITY_VERIFY: LEAD_IDENTITY_VERIFY_PATH,
|
|
30
|
+
RETRIEVE_CR: RETRIEVE_CR_PATH,
|
|
31
|
+
RETRIEVE_FL: RETRIEVE_FL_PATH,
|
|
32
|
+
ENTITY: ENTITY_PATH,
|
|
21
33
|
CHECK_EMAIL: CHECK_EMAIL,
|
|
22
34
|
CHECK_BRAND: CHECK_BRAND,
|
|
23
|
-
FIREBASE_URL: FIREBASE_URL
|
|
35
|
+
FIREBASE_URL: FIREBASE_URL,
|
|
36
|
+
CREATE_ACCOUNT: CREATE_ACCOUNT_PATH,
|
|
37
|
+
CHANNEL: CHANNEL_PATH,
|
|
38
|
+
CUSTOMER_BASES: CUSTOMER_BASES_PATH,
|
|
39
|
+
SALES: SALES_PATH
|
|
24
40
|
};
|
package/build/constants/app.d.ts
CHANGED
|
@@ -75,10 +75,20 @@ export declare const CONNECT_STEP_NAMES: {
|
|
|
75
75
|
VERIFY_AUTH_NID: string;
|
|
76
76
|
UPDATE_LEAD_INDIVIDUAL: string;
|
|
77
77
|
UPDATE_LEAD_MERCHANT: string;
|
|
78
|
+
CREATE_AUTH_PASSWORD: string;
|
|
78
79
|
VERIFY_AUTH_PASSWORD: string;
|
|
79
80
|
CONNECT_SUCCESS: string;
|
|
80
81
|
};
|
|
81
|
-
export declare const BUSINESS_STEP_NAMES: {
|
|
82
|
+
export declare const BUSINESS_STEP_NAMES: {
|
|
83
|
+
PHONE_AUTH: string;
|
|
84
|
+
IDENTITY_AUTH: string;
|
|
85
|
+
IDENTITY_VERIFY_AUTH: string;
|
|
86
|
+
BUSINESS_CR_INFO: string;
|
|
87
|
+
BUSINESS_INFO_CONFIRM: string;
|
|
88
|
+
BUSINESS_CR_ACTIVITIES: string;
|
|
89
|
+
BUSINESS_CUSTOMERS: string;
|
|
90
|
+
BUSINESS_SUCCESS: string;
|
|
91
|
+
};
|
|
82
92
|
export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
83
93
|
export declare const ENCRYPTION_FLAG = "encryption_contract";
|
|
84
94
|
export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
|
package/build/constants/app.js
CHANGED
|
@@ -224,10 +224,20 @@ export var CONNECT_STEP_NAMES = {
|
|
|
224
224
|
VERIFY_AUTH_NID: 'connect_verify_auth_nid',
|
|
225
225
|
UPDATE_LEAD_INDIVIDUAL: 'connect_update_lead_individual',
|
|
226
226
|
UPDATE_LEAD_MERCHANT: 'connect_update_lead_merchant',
|
|
227
|
+
CREATE_AUTH_PASSWORD: 'connect_create_auth_password',
|
|
227
228
|
VERIFY_AUTH_PASSWORD: 'connect_verify_auth_password',
|
|
228
229
|
CONNECT_SUCCESS: 'connect_completed'
|
|
229
230
|
};
|
|
230
|
-
export var BUSINESS_STEP_NAMES = {
|
|
231
|
+
export var BUSINESS_STEP_NAMES = {
|
|
232
|
+
PHONE_AUTH: 'business_phone_auth',
|
|
233
|
+
IDENTITY_AUTH: 'business_identity_auth',
|
|
234
|
+
IDENTITY_VERIFY_AUTH: 'business_identity_auth_verify',
|
|
235
|
+
BUSINESS_CR_INFO: 'business_cr_info',
|
|
236
|
+
BUSINESS_INFO_CONFIRM: 'business_info_confirm',
|
|
237
|
+
BUSINESS_CR_ACTIVITIES: 'business_cr_activities',
|
|
238
|
+
BUSINESS_CUSTOMERS: 'business_customers',
|
|
239
|
+
BUSINESS_SUCCESS: 'business_completed'
|
|
240
|
+
};
|
|
231
241
|
export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
232
242
|
export var ENCRYPTION_FLAG = 'encryption_contract';
|
|
233
243
|
export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
|
|
@@ -31,6 +31,6 @@ export var ICONS_NAMES = {
|
|
|
31
31
|
MOBILE_IMAGE: 'https://image.shutterstock.com/image-vector/smartphone-icon-logo-260nw-767440327.jpg',
|
|
32
32
|
WHITE_ARROW: 'https://tap-connecet.b-cdn.net/imgs/whiteArrow.svg',
|
|
33
33
|
SUCCESS: 'https://tap-connecet.b-cdn.net/imgs/success.svg',
|
|
34
|
-
ABSHER_LOGO: 'https://
|
|
34
|
+
ABSHER_LOGO: 'https://dash.b-cdn.net/icons/menu/Absher.svg',
|
|
35
35
|
EMAIL_ICON: 'https://dash.b-cdn.net/icons/menu/email.png'
|
|
36
36
|
};
|
|
@@ -5,3 +5,4 @@ export var MAX_IBAN_VALUE = 34;
|
|
|
5
5
|
export var FL_NUMBER_LENGTH = 8;
|
|
6
6
|
export var CR_NUMBER_LENGTH = 10;
|
|
7
7
|
export var SAUDI_NUMBER_LENGTH = 9;
|
|
8
|
+
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;
|