@tap-payments/auth-jsconnect 2.1.14-test → 2.1.16-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/Lottie/files/start_loading.json +9 -9
- package/build/constants/app.js +2 -2
- package/build/features/app/business/businessStore.js +13 -9
- package/build/features/app/connect/connectStore.d.ts +1 -5
- package/build/features/app/connect/connectStore.js +172 -247
- package/build/features/business/screens/Activities/Activities.js +6 -14
- package/build/features/business/screens/BusinessType/BusinessType.js +11 -14
- package/build/features/connect/screens/CivilID/CivilID.js +1 -1
- package/build/features/connect/screens/Individual/Individual.js +5 -8
- package/build/features/connect/screens/Merchant/Merchant.js +9 -21
- package/build/features/connect/screens/Merchant/SalesChannels.js +8 -12
- package/build/features/connect/screens/Merchant/validation.js +3 -3
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +3 -3
- package/build/features/shared/SalesChannels/SalesChannel.js +6 -4
- package/build/hooks/useSetFromDefaultValues.js +2 -0
- package/package.json +129 -129
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
"ty": "fl",
|
|
356
|
-
"c": { "a": 0, "k": [0.
|
|
356
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 4 },
|
|
357
357
|
"o": { "a": 0, "k": 100, "ix": 5 },
|
|
358
358
|
"r": 1,
|
|
359
359
|
"bm": 0,
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
"ty": "st",
|
|
419
|
-
"c": { "a": 0, "k": [0.
|
|
419
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
420
420
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
421
421
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
422
422
|
"lc": 1,
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
},
|
|
513
513
|
{
|
|
514
514
|
"ty": "st",
|
|
515
|
-
"c": { "a": 0, "k": [0.
|
|
515
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
516
516
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
517
517
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
518
518
|
"lc": 1,
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
610
|
"ty": "st",
|
|
611
|
-
"c": { "a": 0, "k": [0.
|
|
611
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
612
612
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
613
613
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
614
614
|
"lc": 1,
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
},
|
|
705
705
|
{
|
|
706
706
|
"ty": "st",
|
|
707
|
-
"c": { "a": 0, "k": [0.
|
|
707
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
708
708
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
709
709
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
710
710
|
"lc": 1,
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
"ty": "st",
|
|
803
|
-
"c": { "a": 0, "k": [0.
|
|
803
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
804
804
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
805
805
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
806
806
|
"lc": 1,
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
},
|
|
897
897
|
{
|
|
898
898
|
"ty": "st",
|
|
899
|
-
"c": { "a": 0, "k": [0.
|
|
899
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
900
900
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
901
901
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
902
902
|
"lc": 1,
|
|
@@ -992,7 +992,7 @@
|
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
994
|
"ty": "st",
|
|
995
|
-
"c": { "a": 0, "k": [0.
|
|
995
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
996
996
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
997
997
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
998
998
|
"lc": 1,
|
|
@@ -1088,7 +1088,7 @@
|
|
|
1088
1088
|
},
|
|
1089
1089
|
{
|
|
1090
1090
|
"ty": "st",
|
|
1091
|
-
"c": { "a": 0, "k": [0.
|
|
1091
|
+
"c": { "a": 0, "k": [0.600000023842, 0.674509823322, 0.690196096897, 1], "ix": 3 },
|
|
1092
1092
|
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
1093
1093
|
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
1094
1094
|
"lc": 1,
|
package/build/constants/app.js
CHANGED
|
@@ -36,13 +36,13 @@ export var CONNECT_SCREENS_NAVIGATION = [
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
name: 'CONNECT_VERIFY_PACI_STEP',
|
|
39
|
-
next:
|
|
39
|
+
next: 'CONNECT_INDIVIDUAL_STEP',
|
|
40
40
|
prev: 'CONNECT_CIVIL_ID_STEP',
|
|
41
41
|
order: 2
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
name: 'CONNECT_OTP_STEP',
|
|
45
|
-
next:
|
|
45
|
+
next: 'CONNECT_INDIVIDUAL_STEP',
|
|
46
46
|
prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP'],
|
|
47
47
|
order: 2
|
|
48
48
|
},
|
|
@@ -766,7 +766,7 @@ var initialState = {
|
|
|
766
766
|
},
|
|
767
767
|
activitiesData: {
|
|
768
768
|
activities: [],
|
|
769
|
-
operationStartDate:
|
|
769
|
+
operationStartDate: ''
|
|
770
770
|
},
|
|
771
771
|
customersData: {
|
|
772
772
|
customerLocations: [],
|
|
@@ -809,7 +809,7 @@ export var businessSlice = createSlice({
|
|
|
809
809
|
state.data.otpData.isNID = false;
|
|
810
810
|
if (isRequireOTP)
|
|
811
811
|
return;
|
|
812
|
-
var _d = state.data.verify.responseBody || {}, entity = _d.entity, entity_activities = _d.entity_activities, business_type = _d.business_type
|
|
812
|
+
var _d = state.data.verify.responseBody || {}, entity = _d.entity, entity_activities = _d.entity_activities, business_type = _d.business_type;
|
|
813
813
|
var issuingDate = (brandData === null || brandData === void 0 ? void 0 : brandData.business_operation_start_at) || ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.issuing_date);
|
|
814
814
|
if (issuingDate)
|
|
815
815
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
@@ -827,11 +827,13 @@ export var businessSlice = createSlice({
|
|
|
827
827
|
var licenseList = (busResData || {}).licenseList;
|
|
828
828
|
var selectedLicenseData = selectedLicense;
|
|
829
829
|
if (number_1) {
|
|
830
|
-
var
|
|
830
|
+
var findLicense = (_b = licenseList === null || licenseList === void 0 ? void 0 : licenseList.find) === null || _b === void 0 ? void 0 : _b.call(licenseList, function (_a) {
|
|
831
831
|
var license = _a.license;
|
|
832
832
|
return (license === null || license === void 0 ? void 0 : license.number) === number_1;
|
|
833
833
|
});
|
|
834
|
-
if (
|
|
834
|
+
if (findLicense)
|
|
835
|
+
selectedLicenseData = findLicense;
|
|
836
|
+
else if (!findLicense && business_type === BusinessType.FL) {
|
|
835
837
|
selectedLicenseData = __assign(__assign({}, OTHER_FL_LICENSE), { license: { number: number_1 } });
|
|
836
838
|
}
|
|
837
839
|
else
|
|
@@ -874,7 +876,7 @@ export var businessSlice = createSlice({
|
|
|
874
876
|
state.data.otpData = formData;
|
|
875
877
|
state.data.otpData.responseBody = data;
|
|
876
878
|
state.data.verify.responseBody = __assign(__assign(__assign({}, leadData), state.data.verify.responseBody), { flows: (leadData === null || leadData === void 0 ? void 0 : leadData.flows) || [] });
|
|
877
|
-
var _d = leadData || {}, entity = _d.entity, entity_activities = _d.entity_activities, business_type = _d.business_type
|
|
879
|
+
var _d = leadData || {}, entity = _d.entity, entity_activities = _d.entity_activities, business_type = _d.business_type;
|
|
878
880
|
var issuingDate = (brand === null || brand === void 0 ? void 0 : brand.business_operation_start_at) || ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.issuing_date);
|
|
879
881
|
if (issuingDate)
|
|
880
882
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
@@ -892,11 +894,13 @@ export var businessSlice = createSlice({
|
|
|
892
894
|
var licenseList = (busResData || {}).licenseList;
|
|
893
895
|
var selectedLicenseData = selectedLicense;
|
|
894
896
|
if (number_2) {
|
|
895
|
-
var
|
|
897
|
+
var findLicense = (_b = licenseList === null || licenseList === void 0 ? void 0 : licenseList.find) === null || _b === void 0 ? void 0 : _b.call(licenseList, function (_a) {
|
|
896
898
|
var license = _a.license;
|
|
897
899
|
return (license === null || license === void 0 ? void 0 : license.number) === number_2;
|
|
898
900
|
});
|
|
899
|
-
if (
|
|
901
|
+
if (findLicense)
|
|
902
|
+
selectedLicenseData = findLicense;
|
|
903
|
+
else if (!findLicense && business_type === BusinessType.FL) {
|
|
900
904
|
selectedLicenseData = __assign(__assign({}, OTHER_FL_LICENSE), { license: { number: number_2 } });
|
|
901
905
|
}
|
|
902
906
|
else
|
|
@@ -1050,12 +1054,12 @@ export var businessSlice = createSlice({
|
|
|
1050
1054
|
var _b = action.payload, data = _b.data, formData = _b.formData, accountData = _b.accountData, documentData = _b.documentData;
|
|
1051
1055
|
state.data.businessTypeData = __assign(__assign({}, state.data.businessTypeData), formData);
|
|
1052
1056
|
var entity = data.entity, entity_activities = data.entity_activities;
|
|
1053
|
-
var issuingDate = (_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.issuing_date;
|
|
1057
|
+
var issuingDate = ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.issuing_date) || new Date().getTime();
|
|
1054
1058
|
if ((accountData === null || accountData === void 0 ? void 0 : accountData.status) === 'ALREADY_TAKEN') {
|
|
1055
1059
|
state.error = 'signup_user_exists_error';
|
|
1056
1060
|
return;
|
|
1057
1061
|
}
|
|
1058
|
-
if (
|
|
1062
|
+
if (issuingDate) {
|
|
1059
1063
|
var formattedDate = moment(issuingDate).format('YYYY-MM-DD');
|
|
1060
1064
|
state.data.activitiesData.operationStartDate = convertNumbers2English(formattedDate);
|
|
1061
1065
|
}
|
|
@@ -10,6 +10,7 @@ export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
10
10
|
formData: CivilFormValues;
|
|
11
11
|
}, CivilFormValues, {}>;
|
|
12
12
|
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
13
|
+
export declare const resendOTPNID: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
13
14
|
export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
14
15
|
response: any;
|
|
15
16
|
formData: {
|
|
@@ -18,13 +19,10 @@ export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
18
19
|
dob: string;
|
|
19
20
|
};
|
|
20
21
|
}, NIDFormValues, {}>;
|
|
21
|
-
export declare const resendOTPNID: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
22
22
|
export declare const verifyAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
23
23
|
authResponse: any;
|
|
24
24
|
leadResponse: any;
|
|
25
|
-
isNewUser: any;
|
|
26
25
|
countryCode: CountryCode;
|
|
27
|
-
userInfoMissed: boolean;
|
|
28
26
|
}, OTPFormValues, {}>;
|
|
29
27
|
interface verifyPACIParams {
|
|
30
28
|
onSuccess?: () => void;
|
|
@@ -32,9 +30,7 @@ interface verifyPACIParams {
|
|
|
32
30
|
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
33
31
|
authResponse: any;
|
|
34
32
|
leadResponse: any;
|
|
35
|
-
isNewUser: any;
|
|
36
33
|
countryCode: CountryCode;
|
|
37
|
-
userInfoMissed: boolean;
|
|
38
34
|
}, verifyPACIParams, {}>;
|
|
39
35
|
export declare const updateLeadIndividual: import("@reduxjs/toolkit").AsyncThunk<{
|
|
40
36
|
leadResponse: any;
|