@tap-payments/auth-jsconnect 2.10.9-development → 2.10.9
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/README.md +2 -2
- package/build/@types/app.d.ts +2 -2
- package/build/@types/app.js +0 -1
- package/build/@types/form.d.ts +4 -2
- package/build/@types/index.d.ts +0 -1
- package/build/@types/index.js +0 -1
- package/build/api/auth.d.ts +1 -9
- package/build/api/axios.d.ts +1 -1
- package/build/api/entity.d.ts +3 -0
- package/build/api/index.d.ts +1 -7
- package/build/api/index.js +1 -3
- package/build/api/lead.d.ts +1 -0
- package/build/app/rootReducer.d.ts +0 -1
- package/build/app/rootReducer.js +1 -3
- package/build/app/settings.js +1 -2
- package/build/app/store.d.ts +0 -2
- package/build/assets/currencies/AEDSymbol.js +1 -1
- package/build/assets/currencies/SARSymbol.js +1 -1
- package/build/assets/locales/ar.json +13 -5
- package/build/assets/locales/en.json +14 -5
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -2
- package/build/components/OTPTimer/OTPTimer.js +4 -4
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +2 -0
- package/build/constants/api.js +4 -0
- package/build/constants/app.d.ts +12 -12
- package/build/constants/app.js +8 -119
- package/build/constants/assets.d.ts +4 -6
- package/build/constants/assets.js +118 -114
- package/build/constants/dummy.js +27 -20
- package/build/constants/flows.d.ts +0 -15
- package/build/constants/flows.js +0 -15
- package/build/constants/validation.d.ts +1 -1
- package/build/constants/validation.js +1 -1
- package/build/features/app/business/businessStore.js +15 -10
- package/build/features/app/connect/connectStore.d.ts +6 -5
- package/build/features/app/connect/connectStore.js +23 -10
- package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -5
- package/build/features/app/connectExpress/connectExpressStore.js +43 -14
- package/build/features/app/individual/individualStore.js +5 -3
- package/build/features/auth/Auth.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +13 -2
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
- package/build/features/business/screens/BusinessType/LicenseList.js +15 -7
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
- package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
- package/build/features/business/screens/BusinessType/validation.js +31 -10
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +23 -7
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
- package/build/features/entity/screens/EntityName/EntityName.js +16 -15
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
- package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
- package/build/features/entity/screens/EntityName/validation.js +100 -85
- package/build/features/featuresScreens.d.ts +0 -1
- package/build/features/featuresScreens.js +0 -67
- package/build/features/shared/Button/Button.js +1 -1
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -3
- package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useAppDispatch.d.ts +0 -1
- package/build/index.d.ts +2 -3
- package/build/index.js +2 -4
- package/build/theme/palette.js +0 -12
- package/build/theme/typography.js +0 -4
- package/build/utils/common.d.ts +1 -1
- package/build/utils/common.js +14 -8
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/string.d.ts +3 -2
- package/build/utils/string.js +5 -5
- package/build/utils/validation.js +1 -1
- package/package.json +3 -3
- package/build/@types/terminal.d.ts +0 -116
- package/build/@types/terminal.js +0 -1
- package/build/api/terminal.d.ts +0 -28
- package/build/api/terminal.js +0 -45
- package/build/components/DeviceCard/DeviceCard.d.ts +0 -18
- package/build/components/DeviceCard/DeviceCard.js +0 -103
- package/build/components/DeviceCard/index.d.ts +0 -3
- package/build/components/DeviceCard/index.js +0 -2
- package/build/features/app/terminal/terminalStore.d.ts +0 -109
- package/build/features/app/terminal/terminalStore.js +0 -673
- package/build/features/shared/PushNotification/PushNotification.d.ts +0 -11
- package/build/features/shared/PushNotification/PushNotification.js +0 -34
- package/build/features/shared/PushNotification/index.d.ts +0 -2
- package/build/features/shared/PushNotification/index.js +0 -2
- package/build/features/terminal/Terminal.d.ts +0 -14
- package/build/features/terminal/Terminal.js +0 -95
- package/build/features/terminal/index.d.ts +0 -1
- package/build/features/terminal/index.js +0 -1
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +0 -3
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +0 -68
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkNewTerminal/index.js +0 -2
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +0 -10
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +0 -28
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +0 -3
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +0 -51
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkedSuccess/index.js +0 -2
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +0 -3
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +0 -50
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +0 -2
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +0 -2
- package/build/features/terminal/screens/Loading/Loading.d.ts +0 -4
- package/build/features/terminal/screens/Loading/Loading.js +0 -10
- package/build/features/terminal/screens/Loading/index.d.ts +0 -2
- package/build/features/terminal/screens/Loading/index.js +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +0 -3
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +0 -56
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +0 -2
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +0 -36
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +0 -34
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/terminal/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/terminal/screens/OperatorError/index.d.ts +0 -2
- package/build/features/terminal/screens/OperatorError/index.js +0 -2
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -3
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +0 -2
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -31
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +0 -2
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +0 -9
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +0 -20
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +0 -3
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +0 -144
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/index.js +0 -2
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -9
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +0 -13
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +0 -3
- package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +0 -42
- package/build/features/terminal/screens/TerminalListPage/index.d.ts +0 -2
- package/build/features/terminal/screens/TerminalListPage/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +0 -3
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +0 -53
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +0 -2
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +0 -3
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +0 -98
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +0 -2
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -26
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +0 -30
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +0 -7
- package/build/features/terminal/screens/Verify/OTPInput.js +0 -51
- package/build/features/terminal/screens/Verify/Verify.d.ts +0 -5
- package/build/features/terminal/screens/Verify/Verify.js +0 -85
- package/build/features/terminal/screens/Verify/index.d.ts +0 -2
- package/build/features/terminal/screens/Verify/index.js +0 -2
- package/build/features/terminal/screens/Verify/validation.d.ts +0 -8
- package/build/features/terminal/screens/Verify/validation.js +0 -4
- package/build/features/terminal/screens/shared/Header.d.ts +0 -10
- package/build/features/terminal/screens/shared/Header.js +0 -30
- package/build/features/terminal/screens/shared/TerminalList.d.ts +0 -11
- package/build/features/terminal/screens/shared/TerminalList.js +0 -25
- package/build/features/terminal/screens/shared/index.d.ts +0 -5
- package/build/features/terminal/screens/shared/index.js +0 -5
- package/build/features/terminal/screens/shared/styles.d.ts +0 -196
- package/build/features/terminal/screens/shared/styles.js +0 -155
- package/build/features/terminal/screens/shared/utils.d.ts +0 -7
- package/build/features/terminal/screens/shared/utils.js +0 -24
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ const App = () => {
|
|
|
77
77
|
<meta charset="utf-8" />
|
|
78
78
|
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,shrink-to-fit=no" />
|
|
79
79
|
<title>Auth-JsConnect</title>
|
|
80
|
-
<script src="https://auth-jsconnect
|
|
81
|
-
<link href="https://auth-jsconnect
|
|
80
|
+
<script src="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.js"></script>
|
|
81
|
+
<link href="https://cdn.tap.company/tap-sdks/auth-jsconnect/build-2.0.0/main.css" rel="stylesheet" />
|
|
82
82
|
</head>
|
|
83
83
|
<body>
|
|
84
84
|
<div id="root"></div>
|
package/build/@types/app.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export interface LibConfig extends LibCallbacks {
|
|
|
245
245
|
notification?: SDKNotification;
|
|
246
246
|
boardMaturity?: boolean;
|
|
247
247
|
settingData?: SettingAsyncData;
|
|
248
|
+
region?: string;
|
|
248
249
|
}
|
|
249
250
|
export interface OSDetails {
|
|
250
251
|
name: string;
|
|
@@ -338,8 +339,7 @@ export declare enum FlowsTypes {
|
|
|
338
339
|
OTP = "otp",
|
|
339
340
|
BRAND = "brand",
|
|
340
341
|
BOARD = "board",
|
|
341
|
-
kyc = "kyc"
|
|
342
|
-
TERMINAL = "terminal"
|
|
342
|
+
kyc = "kyc"
|
|
343
343
|
}
|
|
344
344
|
export declare type FlowInfo = {
|
|
345
345
|
name: string;
|
package/build/@types/app.js
CHANGED
package/build/@types/form.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export declare type BrandActivitiesFormValues = {
|
|
|
61
61
|
};
|
|
62
62
|
export declare type BusinessTypeFormValues = {
|
|
63
63
|
licenseNumber: string;
|
|
64
|
+
unifiedNumber: string;
|
|
64
65
|
entityLegalName?: string;
|
|
65
66
|
selectedEntityLicense?: EntityLicense;
|
|
66
67
|
selectedLicense?: License;
|
|
@@ -103,8 +104,8 @@ export interface IndividualPersonalInfoFormValues extends IndividualEmailMobileF
|
|
|
103
104
|
gender: string | null;
|
|
104
105
|
nid: string;
|
|
105
106
|
issuedCountry: CountryCode | undefined;
|
|
106
|
-
expiryDate: string;
|
|
107
|
-
dob: string;
|
|
107
|
+
expiryDate: string | undefined;
|
|
108
|
+
dob: string | undefined;
|
|
108
109
|
placeOfBirthCountry: CountryCode | undefined;
|
|
109
110
|
placeOfBirthCity: City | undefined;
|
|
110
111
|
nationality: CountryCode | undefined;
|
|
@@ -150,6 +151,7 @@ export declare type EntityCapitalFormValues = {
|
|
|
150
151
|
export declare type BusinessDataFormValues = {
|
|
151
152
|
brandName: string;
|
|
152
153
|
licenseNumber: string;
|
|
154
|
+
unifiedNumber: string;
|
|
153
155
|
selectedLicense?: License;
|
|
154
156
|
termAndConditionChecked?: boolean;
|
|
155
157
|
};
|
package/build/@types/index.d.ts
CHANGED
package/build/@types/index.js
CHANGED
package/build/api/auth.d.ts
CHANGED
|
@@ -17,18 +17,10 @@ export declare type CivilID = {
|
|
|
17
17
|
identification_id: string;
|
|
18
18
|
country_code: string;
|
|
19
19
|
};
|
|
20
|
-
export declare type TerminalCredential = {
|
|
21
|
-
terminal: {
|
|
22
|
-
id: string;
|
|
23
|
-
terminal_device?: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
20
|
export declare type CreateAuthBody = {
|
|
29
21
|
country: string;
|
|
30
22
|
scope: string;
|
|
31
|
-
user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID
|
|
23
|
+
user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
|
|
32
24
|
auth_type?: number;
|
|
33
25
|
email_url?: string;
|
|
34
26
|
sign_in?: boolean;
|
package/build/api/axios.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
2
2
|
declare const instance: import("axios").AxiosInstance;
|
|
3
3
|
export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
|
|
4
4
|
export declare const removeAxiosGlobalHeaders: (arr: Array<string>) => void;
|
|
5
|
-
export declare const getAxiosHeaders: () =>
|
|
5
|
+
export declare const getAxiosHeaders: () => Record<string, any>;
|
|
6
6
|
export declare const httpClient: (config: AxiosRequestConfig) => Promise<any>;
|
|
7
7
|
export default instance;
|
package/build/api/entity.d.ts
CHANGED
package/build/api/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import { RemoveBrandActivity } from './brand';
|
|
|
13
13
|
import { UploadFileBody } from './file';
|
|
14
14
|
import { DocumentUpdateBody, DocumentInfo, DocumentBody } from './document';
|
|
15
15
|
import { InitBody } from './init';
|
|
16
|
-
import { GenerateAuthLinkNewTerminalProps, UnlinkTerminalDeviceProps, LinkTerminalDeviceProps } from './terminal';
|
|
17
16
|
declare const API: {
|
|
18
17
|
locationService: {
|
|
19
18
|
getIP: () => Promise<any>;
|
|
@@ -165,12 +164,7 @@ declare const API: {
|
|
|
165
164
|
initService: {
|
|
166
165
|
getInitialData: (body: InitBody) => Promise<any>;
|
|
167
166
|
};
|
|
168
|
-
terminalService: {
|
|
169
|
-
retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
|
|
170
|
-
unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
|
|
171
|
-
retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
|
|
172
|
-
};
|
|
173
167
|
};
|
|
174
|
-
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody
|
|
168
|
+
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody };
|
|
175
169
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
176
170
|
export default API;
|
package/build/api/index.js
CHANGED
|
@@ -16,7 +16,6 @@ import { brandService } from './brand';
|
|
|
16
16
|
import { fileService } from './file';
|
|
17
17
|
import { documentService } from './document';
|
|
18
18
|
import { initService } from './init';
|
|
19
|
-
import { terminalService } from './terminal';
|
|
20
19
|
var API = {
|
|
21
20
|
locationService: locationService,
|
|
22
21
|
operatorService: operatorService,
|
|
@@ -34,8 +33,7 @@ var API = {
|
|
|
34
33
|
brandService: brandService,
|
|
35
34
|
fileService: fileService,
|
|
36
35
|
documentService: documentService,
|
|
37
|
-
initService: initService
|
|
38
|
-
terminalService: terminalService
|
|
36
|
+
initService: initService
|
|
39
37
|
};
|
|
40
38
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
41
39
|
export default API;
|
package/build/api/lead.d.ts
CHANGED
|
@@ -13,6 +13,5 @@ declare const rootReducer: {
|
|
|
13
13
|
auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
|
|
14
14
|
board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
|
|
15
15
|
kyc: import("redux").Reducer<import("../features/app/kyc/kycStore").KYCDataState, import("redux").AnyAction>;
|
|
16
|
-
terminal: import("redux").Reducer<import("../features/app/terminal/terminalStore").TerminalDataState, import("redux").AnyAction>;
|
|
17
16
|
};
|
|
18
17
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -12,7 +12,6 @@ import connectExpress from '../features/app/connectExpress/connectExpressStore';
|
|
|
12
12
|
import board from '../features/app/board/boardStore';
|
|
13
13
|
import auth from '../features/app/auth/authStore';
|
|
14
14
|
import kyc from '../features/app/kyc/kycStore';
|
|
15
|
-
import terminal from '../features/app/terminal/terminalStore';
|
|
16
15
|
var rootReducer = {
|
|
17
16
|
settings: settings,
|
|
18
17
|
connect: connect,
|
|
@@ -27,7 +26,6 @@ var rootReducer = {
|
|
|
27
26
|
connectExpress: connectExpress,
|
|
28
27
|
auth: auth,
|
|
29
28
|
board: board,
|
|
30
|
-
kyc: kyc
|
|
31
|
-
terminal: terminal
|
|
29
|
+
kyc: kyc
|
|
32
30
|
};
|
|
33
31
|
export default rootReducer;
|
package/build/app/settings.js
CHANGED
|
@@ -112,7 +112,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
112
112
|
thunkApi.dispatch(handleLanguage(lang));
|
|
113
113
|
if (configInfo.publicKey) {
|
|
114
114
|
if (configToken) {
|
|
115
|
-
setBaseUrl(configInfo.publicKey, appConfig.
|
|
115
|
+
setBaseUrl(configInfo.publicKey, appConfig.region);
|
|
116
116
|
}
|
|
117
117
|
thunkApi.dispatch(handlePublicKey(configInfo.publicKey));
|
|
118
118
|
}
|
|
@@ -362,7 +362,6 @@ export var settingsSlice = createSlice({
|
|
|
362
362
|
if (state.data.locale && country.iso2)
|
|
363
363
|
updateLocale(state.data.locale, country.iso2);
|
|
364
364
|
state.data.businessCountry = country;
|
|
365
|
-
setBaseUrl(state.data.appConfig.publicKey, country.iso2);
|
|
366
365
|
}
|
|
367
366
|
}
|
|
368
367
|
},
|
package/build/app/store.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
14
14
|
auth: import("../features/app/auth/authStore").AuthState;
|
|
15
15
|
board: import("../features/app/board/boardStore").BoardState;
|
|
16
16
|
kyc: import("../features/app/kyc/kycStore").KYCDataState;
|
|
17
|
-
terminal: import("../features/app/terminal/terminalStore").TerminalDataState;
|
|
18
17
|
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
|
|
19
18
|
settings: import("./settings").SettingsState;
|
|
20
19
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
@@ -30,7 +29,6 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
30
29
|
auth: import("../features/app/auth/authStore").AuthState;
|
|
31
30
|
board: import("../features/app/board/boardStore").BoardState;
|
|
32
31
|
kyc: import("../features/app/kyc/kycStore").KYCDataState;
|
|
33
|
-
terminal: import("../features/app/terminal/terminalStore").TerminalDataState;
|
|
34
32
|
}, import("redux").AnyAction, undefined>]>>;
|
|
35
33
|
export declare type AppDispatch = typeof store.dispatch;
|
|
36
34
|
export declare type RootState = ReturnType<typeof store.getState>;
|
|
@@ -23,6 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
var AEDSymbol = function (_a) {
|
|
25
25
|
var _b = _a.height, height = _b === void 0 ? 10 : _b, svgProps = __rest(_a, ["height"]);
|
|
26
|
-
return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 344.84 299.91' }, svgProps, { children: _jsx("path", { d: 'M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z' }) })) })));
|
|
26
|
+
return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 344.84 299.91', style: { display: 'inline' } }, svgProps, { children: _jsx("path", { d: 'M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z' }) })) })));
|
|
27
27
|
};
|
|
28
28
|
export default AEDSymbol;
|
|
@@ -23,6 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
var SARSymbol = function (_a) {
|
|
25
25
|
var _b = _a.height, height = _b === void 0 ? 10 : _b, svgProps = __rest(_a, ["height"]);
|
|
26
|
-
return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 1124.14 1256.39' }, svgProps, { children: _jsx("path", { d: 'M699.62 1113.02a460.24 460.24 0 0 0-38.4 143.37l424.51-90.24a460.44 460.44 0 0 0 38.4-143.37l-424.51 90.24zM1085.73 895.8a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.33v-135.2l292.27-62.11a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.27V66.13a466.56 466.56 0 0 0-132.25 110.99v403.35l-132.25 28.11V0A466.4 466.4 0 0 0 396.7 110.99v525.69l-295.92 62.88a460.46 460.46 0 0 0-38.42 143.37l334.33-71.05v170.26l-358.3 76.14a460.16 460.16 0 0 0-38.4 143.37l375.03-79.7a119.13 119.13 0 0 0 73.83-49.24l68.78-101.97v-.02a65.72 65.72 0 0 0 11.3-36.97V743.77l132.25-28.11v270.4l424.53-90.28z' }) })) })));
|
|
26
|
+
return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 1124.14 1256.39', style: { display: 'inline' } }, svgProps, { children: _jsx("path", { d: 'M699.62 1113.02a460.24 460.24 0 0 0-38.4 143.37l424.51-90.24a460.44 460.44 0 0 0 38.4-143.37l-424.51 90.24zM1085.73 895.8a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.33v-135.2l292.27-62.11a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.27V66.13a466.56 466.56 0 0 0-132.25 110.99v403.35l-132.25 28.11V0A466.4 466.4 0 0 0 396.7 110.99v525.69l-295.92 62.88a460.46 460.46 0 0 0-38.42 143.37l334.33-71.05v170.26l-358.3 76.14a460.16 460.16 0 0 0-38.4 143.37l375.03-79.7a119.13 119.13 0 0 0 73.83-49.24l68.78-101.97v-.02a65.72 65.72 0 0 0 11.3-36.97V743.77l132.25-28.11v270.4l424.53-90.28z' }) })) })));
|
|
27
27
|
};
|
|
28
28
|
export default SARSymbol;
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
"capital_paid_hint": "00000",
|
|
138
138
|
"capital_paid_input_label": "رأس المال المدفوع",
|
|
139
139
|
"capital_paid_label": "رأس المال المدفوع ({{currency}})",
|
|
140
|
+
"capital_paid_input_label": "رأس المال المدفوع",
|
|
140
141
|
"capital_paid_required": "Please Enter paid amount",
|
|
141
142
|
"capital_share_count_hint": "00000",
|
|
142
143
|
"capital_share_count_label": "عدد اسهم رأس المال",
|
|
@@ -144,6 +145,7 @@
|
|
|
144
145
|
"capital_share_value_hint": "00000",
|
|
145
146
|
"capital_share_value_input_label": "قيمة السهم",
|
|
146
147
|
"capital_share_value_label": "قيمة السهم ({{currency}})",
|
|
148
|
+
"capital_share_value_input_label": "قيمة السهم",
|
|
147
149
|
"capital_share_value_required": "Please Enter share value",
|
|
148
150
|
"category": "الفئة",
|
|
149
151
|
"category_name": "اسم الفئة",
|
|
@@ -284,6 +286,7 @@
|
|
|
284
286
|
"expected_customers_to_serve": "عدد العملاء شهريا",
|
|
285
287
|
"expected_sale_per_month": "البيع المتوقع في الشهر؟",
|
|
286
288
|
"expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
|
|
289
|
+
"expected_sale_per_month": "البيع المتوقع في الشهر؟",
|
|
287
290
|
"expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
|
|
288
291
|
"expected_served_monthly": "عدد العملاء شهريا",
|
|
289
292
|
"expiry_date": "تاريخ الإنتهاء",
|
|
@@ -390,6 +393,7 @@
|
|
|
390
393
|
"loading": "تحميل...",
|
|
391
394
|
"loading_bank_statement": "تحميل.......",
|
|
392
395
|
"login_to_dashboard": "تسجيل الدخول لادارة الحساب",
|
|
396
|
+
"login_with_passcode": "تسجيل الدخول باستخدام رمز المرور",
|
|
393
397
|
"mail_btn_open_title": "افتح البريد الإلكتروني",
|
|
394
398
|
"marital_status": "الحالة الزوجية",
|
|
395
399
|
"masking_symbols": "•••",
|
|
@@ -456,6 +460,8 @@
|
|
|
456
460
|
"paci_verify_loading": "إحضار التفاصيل",
|
|
457
461
|
"paci_verify_loading_desc": "الرجاء التحلي بالصبر حتى التحقق من التفاصيل",
|
|
458
462
|
"paci_waiting_title": "Please wait we are verifying",
|
|
463
|
+
"passcode_required": "الرجاء إدخال رمز المرور المطلوب",
|
|
464
|
+
"passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
|
|
459
465
|
"password_flow_completed": "إعادة تعيين كلمة المرور",
|
|
460
466
|
"password_flow_pending": "إعداد كلمة المرور",
|
|
461
467
|
"password_flow_title": "إعداد كلمة المرور",
|
|
@@ -490,6 +496,7 @@
|
|
|
490
496
|
"please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
|
|
491
497
|
"please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
|
|
492
498
|
"please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
|
|
499
|
+
"monthly_income": "ما هو دخلك الشهري؟ ",
|
|
493
500
|
"please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
|
|
494
501
|
"please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
|
|
495
502
|
"powered_by": "بواسطة",
|
|
@@ -531,6 +538,7 @@
|
|
|
531
538
|
"share_value_hint": "0000",
|
|
532
539
|
"share_value_input_label": "قيمة السهم",
|
|
533
540
|
"share_value_label": "قيمة السهم ({{currency}})",
|
|
541
|
+
"sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
|
|
534
542
|
"sign_up": "Sign up",
|
|
535
543
|
"signed_up": "تسجيل الدخول",
|
|
536
544
|
"signin_email_label": "البريد الألكتروني",
|
|
@@ -654,6 +662,10 @@
|
|
|
654
662
|
"update_later": "سأقوم بالتحديث لاحقاً",
|
|
655
663
|
"update_mobile_number": "تحديث رقم الجوال",
|
|
656
664
|
"uploaded_file": "file",
|
|
665
|
+
"v1_add_unified_number": "أضف الرقم الموحد",
|
|
666
|
+
"v1_company_unified_number_description": "يمكنك العثور على الرقم الموحد لشركتك في الزاوية العلوية اليسرى من شهادة تسجيل الشركة.",
|
|
667
|
+
"v1_company_unified_number_hint": "700xxxxxxx",
|
|
668
|
+
"v1_company_unified_number_label": "الرقم الموحد للشركة",
|
|
657
669
|
"vat_id": "رقم الضريبي المميز",
|
|
658
670
|
"vat_id_placeholder": "00000000",
|
|
659
671
|
"verification_brand_name": "الاسم التجاري",
|
|
@@ -671,9 +683,5 @@
|
|
|
671
683
|
"year": "السنة",
|
|
672
684
|
"yes": "نعم",
|
|
673
685
|
"your_brand_details": "تفاصيل علامتك التجارية",
|
|
674
|
-
"يرجى التحقق من اسم تطبيق ابل": ""
|
|
675
|
-
"passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
|
|
676
|
-
"sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
|
|
677
|
-
"passcode_required": "الرجاء إدخال رمز المرور المطلوب",
|
|
678
|
-
"login_with_passcode": "تسجيل الدخول باستخدام رمز المرور"
|
|
686
|
+
"يرجى التحقق من اسم تطبيق ابل": ""
|
|
679
687
|
}
|
|
@@ -136,6 +136,7 @@
|
|
|
136
136
|
"capital_paid_hint": "00000",
|
|
137
137
|
"capital_paid_input_label": "Capital Paid",
|
|
138
138
|
"capital_paid_label": "Capital Paid ({{currency}})",
|
|
139
|
+
"capital_paid_input_label": "Capital Paid",
|
|
139
140
|
"capital_paid_required": "Please Enter paid amount",
|
|
140
141
|
"capital_share_count_hint": "00000",
|
|
141
142
|
"capital_share_count_label": "Capital Share Count",
|
|
@@ -143,6 +144,7 @@
|
|
|
143
144
|
"capital_share_value_hint": "00000",
|
|
144
145
|
"capital_share_value_input_label": "Capital Share Value",
|
|
145
146
|
"capital_share_value_label": "Capital Share Value ({{currency}})",
|
|
147
|
+
"capital_share_value_input_label": "Capital Share Value",
|
|
146
148
|
"capital_share_value_required": "Please Enter share value",
|
|
147
149
|
"category": "Category",
|
|
148
150
|
"category_name": "Category name",
|
|
@@ -292,6 +294,7 @@
|
|
|
292
294
|
"expected_customers_to_serve": "Customers served per month",
|
|
293
295
|
"expected_sale_per_month": "Expected sale per month?",
|
|
294
296
|
"expected_sales_monthly": "Expected sale per month? ({{currency}})",
|
|
297
|
+
"expected_sale_per_month": "Expected sale per month?",
|
|
295
298
|
"expected_sales_yearly": "What is the expected sales for your business per month?",
|
|
296
299
|
"expected_served_monthly": "Customers served per month",
|
|
297
300
|
"expiry_date": "Date of expiry",
|
|
@@ -393,6 +396,7 @@
|
|
|
393
396
|
"kyc_token_invalid": "May you please verify link of which you are trying to open.",
|
|
394
397
|
"kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
|
|
395
398
|
"kyc_verification": "Know Your Customer (KYC)",
|
|
399
|
+
"kyc_privacy_policy": "Privacy Policy",
|
|
396
400
|
"language": "العربية",
|
|
397
401
|
"license_info": "License information",
|
|
398
402
|
"license_name_hint": "Enter legal name",
|
|
@@ -405,6 +409,7 @@
|
|
|
405
409
|
"loading": "Loading...",
|
|
406
410
|
"loading_bank_statement": "loading....",
|
|
407
411
|
"login_to_dashboard": "Login to dashboard",
|
|
412
|
+
"login_with_passcode": "Login with Passcode",
|
|
408
413
|
"mail_btn_open_title": "Open Mail",
|
|
409
414
|
"marital_status": "Marital status",
|
|
410
415
|
"masking_symbols": "•••",
|
|
@@ -472,6 +477,8 @@
|
|
|
472
477
|
"paci_verify_loading": "Fetching Details",
|
|
473
478
|
"paci_verify_loading_desc": "Please be patient until verify details",
|
|
474
479
|
"paci_waiting_title": "Please wait we are verifying",
|
|
480
|
+
"passcode_required": "Please enter the required Passcode",
|
|
481
|
+
"passcode_title": "Please enter your passcode",
|
|
475
482
|
"password_flow_completed": "Reset my password",
|
|
476
483
|
"password_flow_pending": "Setup my password",
|
|
477
484
|
"password_flow_title": "Setup your password",
|
|
@@ -506,6 +513,7 @@
|
|
|
506
513
|
"please_choose_is_authorized": "Please tell us if you are the authorized user",
|
|
507
514
|
"please_choose_relative_pep": "Are you or one of your relatives a Publicly Exposed Person (PEP)",
|
|
508
515
|
"please_enter_actual_income": "Monthly income ({{currency}})",
|
|
516
|
+
"monthly_income": "Monthly income",
|
|
509
517
|
"please_enter_employer_name": "Please enter the name of your employer",
|
|
510
518
|
"please_try_again_after_few_minutes": "You can try to login again after {{minutes}} mins",
|
|
511
519
|
"powered_by": "Powered by",
|
|
@@ -553,6 +561,7 @@
|
|
|
553
561
|
"share_value_hint": "0000",
|
|
554
562
|
"share_value_input_label": "Share Value",
|
|
555
563
|
"share_value_label": "Share Value ({{currency}})",
|
|
564
|
+
"sign_in_with_otp": "Sign in with OTP",
|
|
556
565
|
"sign_up": "Sign up",
|
|
557
566
|
"signed_up": "Signed up",
|
|
558
567
|
"signin_email_label": "Email address",
|
|
@@ -682,6 +691,10 @@
|
|
|
682
691
|
"upload_bank_statement": "Please upload the bank statement",
|
|
683
692
|
"upload_file": "Select a file from your computer",
|
|
684
693
|
"uploaded_file": "file",
|
|
694
|
+
"v1_add_unified_number": "Add a Unified Number",
|
|
695
|
+
"v1_company_unified_number_description": "You can find your Company Unified Number in the top-left corner of your Company Registration Certificate.",
|
|
696
|
+
"v1_company_unified_number_hint": "700xxxxxxx",
|
|
697
|
+
"v1_company_unified_number_label": "Company unified number",
|
|
685
698
|
"vat_id": "Tax Identification Number (TIN)",
|
|
686
699
|
"vat_id_placeholder": "000000000",
|
|
687
700
|
"verification_brand_name": "Brand name",
|
|
@@ -698,9 +711,5 @@
|
|
|
698
711
|
"website_label": "Website",
|
|
699
712
|
"year": "Year",
|
|
700
713
|
"yes": "Yes",
|
|
701
|
-
"your_brand_details": "Your brand details"
|
|
702
|
-
"passcode_title": "Please enter your passcode",
|
|
703
|
-
"sign_in_with_otp": "Sign in with OTP",
|
|
704
|
-
"passcode_required": "Please enter the required Passcode",
|
|
705
|
-
"login_with_passcode": "Login with Passcode"
|
|
714
|
+
"your_brand_details": "Your brand details"
|
|
706
715
|
}
|
|
@@ -4,10 +4,9 @@ export interface OTPTimerProps extends BoxProps {
|
|
|
4
4
|
timeInSeconds?: number;
|
|
5
5
|
timeEndLabel: string;
|
|
6
6
|
onResetClick?: () => void;
|
|
7
|
-
failed?: boolean;
|
|
8
7
|
}
|
|
9
8
|
declare const _default: React.MemoExoticComponent<{
|
|
10
|
-
({ timeInSeconds, timeEndLabel, onResetClick,
|
|
9
|
+
({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
|
|
11
10
|
defaultProps: {
|
|
12
11
|
time: number;
|
|
13
12
|
};
|
|
@@ -44,7 +44,7 @@ var OTPTimerTextStyled = styled(Text)(function (_a) {
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
var OTPTimerComponent = function (_a) {
|
|
47
|
-
var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick,
|
|
47
|
+
var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
|
|
48
48
|
var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
|
|
49
49
|
React.useEffect(function () {
|
|
50
50
|
if (timeValue <= 0)
|
|
@@ -55,14 +55,14 @@ var OTPTimerComponent = function (_a) {
|
|
|
55
55
|
return function () { return clearInterval(interval); };
|
|
56
56
|
}, [timeValue]);
|
|
57
57
|
var resetTimer = function () {
|
|
58
|
-
if (onResetClick &&
|
|
58
|
+
if (onResetClick && timeValue == 0) {
|
|
59
59
|
onResetClick();
|
|
60
60
|
seTimeValue(timeInSeconds || 60);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
|
|
64
|
-
cursor:
|
|
65
|
-
} }, { children: timeValue > 0
|
|
64
|
+
cursor: timeValue <= 0 && onResetClick ? 'pointer' : 'default'
|
|
65
|
+
} }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
|
|
66
66
|
};
|
|
67
67
|
OTPTimerComponent.defaultProps = {
|
|
68
68
|
time: 59
|
|
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
|
|
|
33
33
|
var _b;
|
|
34
34
|
var theme = _a.theme;
|
|
35
35
|
return (_b = {},
|
|
36
|
-
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
|
|
36
|
+
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
|
|
37
37
|
_b);
|
|
38
38
|
});
|
|
39
39
|
var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
|
package/build/constants/api.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ export declare const ENDPOINT_PATHS: {
|
|
|
12
12
|
SANDBOX_BASE_URL: string;
|
|
13
13
|
PRODUCTION_BASE_URL: string;
|
|
14
14
|
PRODUCTION_BASE_URL_SA: string;
|
|
15
|
+
PRODUCTION_BASE_URL_SA_DR: string;
|
|
15
16
|
DEV_BASE_URL: string;
|
|
17
|
+
BETA_BASE_URL: string;
|
|
16
18
|
BUSINESS_COUNTRIES: string;
|
|
17
19
|
COUNTRIES: string;
|
|
18
20
|
IP: string;
|
package/build/constants/api.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
|
|
2
2
|
var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
|
|
3
3
|
var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
|
|
4
|
+
var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw.tap.com.sa/middleware';
|
|
4
5
|
var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
6
|
+
var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
|
|
5
7
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
6
8
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
7
9
|
var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
|
|
@@ -70,7 +72,9 @@ export var ENDPOINT_PATHS = {
|
|
|
70
72
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
71
73
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
72
74
|
PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
|
|
75
|
+
PRODUCTION_BASE_URL_SA_DR: PRODUCTION_BASE_URL_SA_DR,
|
|
73
76
|
DEV_BASE_URL: DEV_BASE_URL,
|
|
77
|
+
BETA_BASE_URL: BETA_BASE_URL,
|
|
74
78
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
75
79
|
COUNTRIES: API_COUNTRIES,
|
|
76
80
|
IP: IP_PATH,
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ScreenStepNavigation, BusinessType
|
|
1
|
+
import { ScreenStepNavigation, BusinessType } from '../@types';
|
|
2
2
|
export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
|
|
3
|
+
export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
|
|
4
|
+
export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
|
|
3
5
|
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
4
6
|
export declare const CLIENT_ORIGIN: string;
|
|
5
7
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
|
@@ -13,7 +15,6 @@ export declare const SCOPE_MERCHANT = "merchant";
|
|
|
13
15
|
export declare const DEFAULT_COUNTRY_ISO2 = "KW";
|
|
14
16
|
export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
|
|
15
17
|
export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
|
|
16
|
-
export declare const TERMINAL_PUSH_NOTIFICATION_FAILED = "terminal_push_notification_link_new_terminal_failed";
|
|
17
18
|
export declare const LANGUAGE_ABBREVIATIONS: {
|
|
18
19
|
ENGLISH: string;
|
|
19
20
|
ARABIC: string;
|
|
@@ -43,7 +44,6 @@ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
|
43
44
|
export declare const SigIn_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
44
45
|
export declare const ENTITY_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
45
46
|
export declare const BRAND_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
46
|
-
export declare const TERMINAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
|
47
47
|
export declare const DefaultDeviceInfo: {
|
|
48
48
|
source: string;
|
|
49
49
|
device: {
|
|
@@ -215,13 +215,6 @@ export declare const KYC_STEP_NAMES: {
|
|
|
215
215
|
KYC_VERIFY_NAFATH: string;
|
|
216
216
|
KYC_COMPLETED: string;
|
|
217
217
|
};
|
|
218
|
-
export declare const TERMINAL_STEP_NAMES: {
|
|
219
|
-
PHONE_AUTH: string;
|
|
220
|
-
INFO: string;
|
|
221
|
-
SUCCESS: string;
|
|
222
|
-
CREATE_AUTH: string;
|
|
223
|
-
CREATE_TERMINAL_AUTH: string;
|
|
224
|
-
};
|
|
225
218
|
export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
|
|
226
219
|
export declare const ENCRYPTION_FLAG = "encryption_contract";
|
|
227
220
|
export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
|
|
@@ -234,6 +227,9 @@ export declare const OTHER_FL_LICENSE: {
|
|
|
234
227
|
};
|
|
235
228
|
license: {
|
|
236
229
|
number: string;
|
|
230
|
+
additional_info: {
|
|
231
|
+
unified_number: string;
|
|
232
|
+
};
|
|
237
233
|
};
|
|
238
234
|
type: BusinessType;
|
|
239
235
|
};
|
|
@@ -245,6 +241,9 @@ export declare const OTHER_ENTITY_LICENSE: {
|
|
|
245
241
|
};
|
|
246
242
|
license: {
|
|
247
243
|
number: string;
|
|
244
|
+
additional_info: {
|
|
245
|
+
unified_number: string;
|
|
246
|
+
};
|
|
248
247
|
};
|
|
249
248
|
type: BusinessType;
|
|
250
249
|
};
|
|
@@ -255,6 +254,9 @@ export declare const OTHER_CR_LICENSE: {
|
|
|
255
254
|
};
|
|
256
255
|
license: {
|
|
257
256
|
number: string;
|
|
257
|
+
additional_info: {
|
|
258
|
+
unified_number: string;
|
|
259
|
+
};
|
|
258
260
|
};
|
|
259
261
|
type: BusinessType;
|
|
260
262
|
};
|
|
@@ -316,6 +318,4 @@ interface CountryToCurrencyMapping {
|
|
|
316
318
|
[countryCode: string]: string;
|
|
317
319
|
}
|
|
318
320
|
export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
|
|
319
|
-
export declare const SELECTED_TERMINAL_DEVICE_DEFAULT_INFO: TerminalDeviceInfo;
|
|
320
|
-
export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
|
|
321
321
|
export {};
|