@tap-payments/auth-jsconnect 2.6.57-test → 2.6.60-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/@types/app.d.ts +3 -1
- package/build/@types/app.js +1 -1
- package/build/api/account.d.ts +1 -0
- package/build/api/account.js +8 -1
- package/build/api/auth.d.ts +2 -0
- package/build/api/index.d.ts +4 -3
- package/build/api/lead.d.ts +3 -0
- package/build/api/operator.d.ts +3 -2
- package/build/api/operator.js +2 -2
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +2 -0
- package/build/app/settings.js +3 -2
- package/build/app/store.d.ts +2 -0
- package/build/assets/locales/ar.json +2 -1
- package/build/assets/locales/en.json +2 -1
- package/build/constants/app.d.ts +11 -0
- package/build/constants/app.js +54 -0
- package/build/features/app/auth/authStore.d.ts +189 -0
- package/build/features/app/auth/authStore.js +726 -0
- package/build/features/app/bank/bankStore.js +5 -4
- package/build/features/app/brand/brandStore.js +5 -4
- package/build/features/app/business/businessStore.js +37 -28
- package/build/features/app/connectExpress/connectExpressStore.js +3 -2
- package/build/features/app/entity/entityStore.js +5 -4
- package/build/features/app/individual/individualStore.js +5 -4
- package/build/features/app/tax/taxStore.js +5 -4
- package/build/features/auth/Auth.d.ts +9 -0
- package/build/features/auth/Auth.js +93 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +91 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.js +96 -0
- package/build/features/auth/screens/AuthenticationList/MerchantList.d.ts +10 -0
- package/build/features/auth/screens/AuthenticationList/MerchantList.js +107 -0
- package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/auth/screens/AuthenticationList/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/validation.d.ts +14 -0
- package/build/features/auth/screens/AuthenticationList/validation.js +8 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +105 -0
- package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/auth/screens/BusinessCountry/index.js +2 -0
- package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/auth/screens/CivilID/CivilID.js +88 -0
- package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
- package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
- package/build/features/auth/screens/CivilID/index.d.ts +3 -0
- package/build/features/auth/screens/CivilID/index.js +2 -0
- package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
- package/build/features/auth/screens/CivilID/validation.js +4 -0
- package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/auth/screens/Mobile/Mobile.js +108 -0
- package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
- package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
- package/build/features/auth/screens/Mobile/index.d.ts +3 -0
- package/build/features/auth/screens/Mobile/index.js +2 -0
- package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
- package/build/features/auth/screens/Mobile/validation.js +30 -0
- package/build/features/auth/screens/NID/DOB.d.ts +6 -0
- package/build/features/auth/screens/NID/DOB.js +47 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
- package/build/features/auth/screens/NID/IDNumber.js +55 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +92 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +11 -0
- package/build/features/auth/screens/NID/validation.js +11 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +88 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +57 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/auth/screens/VerifyPACI/index.js +2 -0
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -33
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -17
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +6 -33
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -17
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +2 -2
- package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +6 -33
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +40 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
- package/build/features/shared/Address/CountryList.d.ts +5 -21
- package/build/features/shared/Address/InputSelect.d.ts +5 -21
- package/build/features/shared/Background/Background.d.ts +2 -1
- package/build/features/shared/Background/Background.js +5 -5
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
- package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +3 -1
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +8 -1
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +3 -0
- package/build/utils/validation.js +2 -1
- package/package.json +1 -1
package/build/utils/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { axiosInstance } from '../api';
|
|
2
|
-
import { ENDPOINT_PATHS } from '../constants';
|
|
2
|
+
import { ENDPOINT_PATHS, CONNECT_DEV_URL, CONNECT_PROD_URL } from '../constants';
|
|
3
3
|
export var sleep = function (milliseconds) {
|
|
4
4
|
if (milliseconds === void 0) { milliseconds = 1000; }
|
|
5
5
|
return new Promise(function (resolve) { return setTimeout(resolve, milliseconds); });
|
|
@@ -34,3 +34,10 @@ export var updateLocationUrlWithCountry = function (countryIso2) {
|
|
|
34
34
|
var newUrl = "".concat(protocol, "//").concat(host).concat(updatedPath).concat(search).concat(hash);
|
|
35
35
|
window.history.replaceState({}, '', newUrl);
|
|
36
36
|
};
|
|
37
|
+
export var openConnect = function (pk, countryCode) {
|
|
38
|
+
var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL : CONNECT_DEV_URL);
|
|
39
|
+
if (countryCode) {
|
|
40
|
+
newUrl.pathname = "/".concat(countryCode.toLowerCase());
|
|
41
|
+
}
|
|
42
|
+
window.open("".concat(newUrl), '_self', '_blank');
|
|
43
|
+
};
|
package/build/utils/string.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const getEighteenYearsAgo: () => string;
|
|
|
47
47
|
export declare const isKW: (flag: string) => boolean;
|
|
48
48
|
export declare const isSA: (flag: string) => boolean;
|
|
49
49
|
export declare const isOtherThanKWOrSA: (flag: string) => boolean;
|
|
50
|
+
export declare const isKWOrSA: (flag: string) => boolean;
|
|
50
51
|
export declare const isLinkedIn: (flag: string) => boolean;
|
|
51
52
|
export declare const isTwitter: (flag: string) => boolean;
|
|
52
53
|
export declare const isWebsite: (flag: string) => boolean;
|
package/build/utils/string.js
CHANGED
|
@@ -209,6 +209,9 @@ export var isSA = function (flag) {
|
|
|
209
209
|
export var isOtherThanKWOrSA = function (flag) {
|
|
210
210
|
return !isKW(flag) && !isSA(flag);
|
|
211
211
|
};
|
|
212
|
+
export var isKWOrSA = function (flag) {
|
|
213
|
+
return isKW(flag) || isSA(flag);
|
|
214
|
+
};
|
|
212
215
|
export var isLinkedIn = function (flag) {
|
|
213
216
|
return 'linkedin' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
214
217
|
};
|
|
@@ -41,7 +41,8 @@ export var keepLettersAndSpace = function (str) {
|
|
|
41
41
|
return str.replace(/[^a-zA-Z] /g, '');
|
|
42
42
|
};
|
|
43
43
|
export var isTapDomain = function (domain) {
|
|
44
|
-
|
|
44
|
+
var regex = /^(connect(?:\..+)?\.tap\.company)$/;
|
|
45
|
+
return regex.test(domain);
|
|
45
46
|
};
|
|
46
47
|
export var removeArabicWords = function (str) {
|
|
47
48
|
return str.replace(/[\u0600-\u06FF]/g, '').trim();
|