@tap-payments/auth-jsconnect 2.10.11-beta → 2.10.11

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.
Files changed (121) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +3 -1
  3. package/build/@types/app.js +1 -0
  4. package/build/@types/form.d.ts +7 -2
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/account.js +7 -4
  7. package/build/api/auth.d.ts +2 -1
  8. package/build/api/auth.js +7 -3
  9. package/build/api/axios.d.ts +1 -1
  10. package/build/api/entity.d.ts +3 -0
  11. package/build/api/headers.d.ts +5 -0
  12. package/build/api/headers.js +3 -0
  13. package/build/api/index.d.ts +4 -4
  14. package/build/api/lead.d.ts +1 -0
  15. package/build/api/operator.d.ts +1 -1
  16. package/build/api/operator.js +5 -2
  17. package/build/app/settings.d.ts +1 -0
  18. package/build/app/settings.js +8 -5
  19. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  20. package/build/assets/currencies/AEDSymbol.js +28 -0
  21. package/build/assets/currencies/SARSymbol.d.ts +7 -0
  22. package/build/assets/currencies/SARSymbol.js +28 -0
  23. package/build/assets/currencies/index.d.ts +2 -0
  24. package/build/assets/currencies/index.js +2 -0
  25. package/build/assets/currencies/utils.d.ts +4 -0
  26. package/build/assets/currencies/utils.js +6 -0
  27. package/build/assets/locales/ar.json +53 -7
  28. package/build/assets/locales/en.json +58 -11
  29. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +7 -0
  30. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  31. package/build/components/TextWithCurrency/index.d.ts +2 -0
  32. package/build/components/TextWithCurrency/index.js +2 -0
  33. package/build/constants/api.d.ts +1 -0
  34. package/build/constants/api.js +2 -0
  35. package/build/constants/app.d.ts +11 -0
  36. package/build/constants/app.js +110 -19
  37. package/build/constants/assets.d.ts +12 -3
  38. package/build/constants/assets.js +123 -105
  39. package/build/constants/dummy.js +27 -20
  40. package/build/constants/validation.d.ts +1 -0
  41. package/build/constants/validation.js +1 -0
  42. package/build/features/app/auth/authStore.d.ts +24 -5
  43. package/build/features/app/auth/authStore.js +188 -113
  44. package/build/features/app/bank/bankStore.js +24 -20
  45. package/build/features/app/board/boardStore.js +11 -7
  46. package/build/features/app/brand/brandStore.js +22 -18
  47. package/build/features/app/business/businessStore.js +45 -36
  48. package/build/features/app/connect/connectStore.d.ts +6 -5
  49. package/build/features/app/connect/connectStore.js +48 -31
  50. package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -5
  51. package/build/features/app/connectExpress/connectExpressStore.js +99 -39
  52. package/build/features/app/entity/entityStore.js +21 -17
  53. package/build/features/app/individual/individualStore.js +33 -28
  54. package/build/features/app/password/passwordStore.js +44 -46
  55. package/build/features/app/signIn/signInStore.js +12 -16
  56. package/build/features/app/tax/taxStore.js +21 -17
  57. package/build/features/auth/Auth.d.ts +1 -1
  58. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +10 -7
  59. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -1
  60. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +6 -4
  61. package/build/features/auth/screens/AuthenticationList/EntityList.js +11 -3
  62. package/build/features/auth/screens/OTP/OTP.d.ts +13 -2
  63. package/build/features/auth/screens/OTP/OTP.js +15 -3
  64. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  65. package/build/features/auth/screens/Passcode/Passcode.d.ts +16 -0
  66. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  67. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  68. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  69. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  70. package/build/features/auth/screens/Passcode/index.js +2 -0
  71. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  72. package/build/features/auth/screens/Passcode/validation.js +4 -0
  73. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  74. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  75. package/build/features/business/screens/BusinessType/BusinessType.js +15 -5
  76. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  77. package/build/features/business/screens/BusinessType/LicenseList.js +20 -12
  78. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  79. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  80. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  81. package/build/features/business/screens/BusinessType/validation.js +31 -10
  82. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  83. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  84. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +10 -10
  85. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +4 -1
  86. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +6 -4
  87. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +11 -3
  88. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  89. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +27 -16
  90. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  91. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  92. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  93. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  94. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  95. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  96. package/build/features/connectExpress/screens/Mobile/Mobile.js +7 -6
  97. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  98. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  99. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  100. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  101. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  102. package/build/features/entity/screens/EntityName/validation.js +100 -85
  103. package/build/features/featuresScreens.js +60 -0
  104. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  105. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  106. package/build/features/shared/Background/LogoBackground.js +5 -17
  107. package/build/features/shared/Button/Button.js +1 -2
  108. package/build/features/shared/Input/Input.d.ts +1 -1
  109. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
  110. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
  111. package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
  112. package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
  113. package/build/hooks/useAppConfig.js +1 -1
  114. package/build/utils/common.d.ts +1 -1
  115. package/build/utils/common.js +14 -8
  116. package/build/utils/error.d.ts +2 -0
  117. package/build/utils/error.js +6 -0
  118. package/build/utils/string.d.ts +3 -2
  119. package/build/utils/string.js +4 -1
  120. package/build/utils/validation.js +1 -1
  121. package/package.json +3 -3
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.b-cdn.net/build-2.0.0/main.js"></script>
81
- <link href="https://auth-jsconnect.b-cdn.net/build-2.0.0/main.css" rel="stylesheet" />
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>
@@ -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;
@@ -361,7 +362,8 @@ export declare enum AuthTypeNumber {
361
362
  MOBILE_OTP = 2,
362
363
  PASSWORD = 1,
363
364
  MIGRATION = 10,
364
- RESET_PASSWORD = 7
365
+ RESET_PASSWORD = 7,
366
+ PASSCODE = 11
365
367
  }
366
368
  export declare enum MigrationStatus {
367
369
  IN_PROGRESS = "IN_PROGRESS",
@@ -56,6 +56,7 @@ export var AuthTypeNumber;
56
56
  AuthTypeNumber[AuthTypeNumber["PASSWORD"] = 1] = "PASSWORD";
57
57
  AuthTypeNumber[AuthTypeNumber["MIGRATION"] = 10] = "MIGRATION";
58
58
  AuthTypeNumber[AuthTypeNumber["RESET_PASSWORD"] = 7] = "RESET_PASSWORD";
59
+ AuthTypeNumber[AuthTypeNumber["PASSCODE"] = 11] = "PASSCODE";
59
60
  })(AuthTypeNumber || (AuthTypeNumber = {}));
60
61
  export var MigrationStatus;
61
62
  (function (MigrationStatus) {
@@ -10,6 +10,9 @@ export declare type EmailFormValues = {
10
10
  export declare type OTPFormValues = {
11
11
  otp: string;
12
12
  };
13
+ export declare type PasscodeFormValues = {
14
+ passcode: string;
15
+ };
13
16
  export declare type PasswordFormValues = {
14
17
  password: string;
15
18
  };
@@ -58,6 +61,7 @@ export declare type BrandActivitiesFormValues = {
58
61
  };
59
62
  export declare type BusinessTypeFormValues = {
60
63
  licenseNumber: string;
64
+ unifiedNumber: string;
61
65
  entityLegalName?: string;
62
66
  selectedEntityLicense?: EntityLicense;
63
67
  selectedLicense?: License;
@@ -100,8 +104,8 @@ export interface IndividualPersonalInfoFormValues extends IndividualEmailMobileF
100
104
  gender: string | null;
101
105
  nid: string;
102
106
  issuedCountry: CountryCode | undefined;
103
- expiryDate: string;
104
- dob: string;
107
+ expiryDate: string | undefined;
108
+ dob: string | undefined;
105
109
  placeOfBirthCountry: CountryCode | undefined;
106
110
  placeOfBirthCity: City | undefined;
107
111
  nationality: CountryCode | undefined;
@@ -147,6 +151,7 @@ export declare type EntityCapitalFormValues = {
147
151
  export declare type BusinessDataFormValues = {
148
152
  brandName: string;
149
153
  licenseNumber: string;
154
+ unifiedNumber: string;
150
155
  selectedLicense?: License;
151
156
  termAndConditionChecked?: boolean;
152
157
  };
@@ -19,8 +19,8 @@ export declare type ExpressCreateAccountBody = {
19
19
  declare const accountService: {
20
20
  createAccount: (data: CreateAccountBody) => Promise<any>;
21
21
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
22
- checkAccountAvailability: (individualId: string) => Promise<any>;
23
- checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
22
+ checkAccountAvailability: (individualId: string, authSession?: string) => Promise<any>;
23
+ checkAccountAvailabilityStatus: (individualId: string, authSession?: string) => Promise<any>;
24
24
  checkMigrationStatus: (jobId: string) => Promise<any>;
25
25
  };
26
26
  export { accountService };
@@ -1,5 +1,6 @@
1
1
  import { ENDPOINT_PATHS } from '../constants';
2
2
  import { httpClient } from './axios';
3
+ import { getAuthHeaders } from './headers';
3
4
  var createAccount = function (data) {
4
5
  return httpClient({
5
6
  method: 'post',
@@ -14,16 +15,18 @@ var expressCreateAccount = function (data) {
14
15
  data: data
15
16
  });
16
17
  };
17
- var checkAccountAvailability = function (individualId) {
18
+ var checkAccountAvailability = function (individualId, authSession) {
18
19
  return httpClient({
19
20
  method: 'get',
20
- url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
21
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts"),
22
+ headers: getAuthHeaders(authSession)
21
23
  });
22
24
  };
23
- var checkAccountAvailabilityStatus = function (individualId) {
25
+ var checkAccountAvailabilityStatus = function (individualId, authSession) {
24
26
  return httpClient({
25
27
  method: 'get',
26
- url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status")
28
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status"),
29
+ headers: getAuthHeaders(authSession)
27
30
  });
28
31
  };
29
32
  var checkMigrationStatus = function (jobId) {
@@ -31,6 +31,7 @@ export declare type CreateAuthBody = {
31
31
  lead_id?: string;
32
32
  board_id?: string;
33
33
  user_id?: string;
34
+ login?: boolean;
34
35
  };
35
36
  export declare type CreateNafathAuthBody = {
36
37
  country: string;
@@ -119,7 +120,7 @@ export declare type getExpressTokenVerifyParams = {
119
120
  export declare type ConfigBody = Pick<ConfigInfo, 'scope' | 'data' | 'lead' | 'board' | 'interface' | 'redirect' | 'post'>;
120
121
  declare const authService: {
121
122
  createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: AxiosRequestConfig) => Promise<any>;
122
- verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
123
+ verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody) => Promise<any>;
123
124
  createPassword: (data: CreatePasswordBody) => Promise<any>;
124
125
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
125
126
  getVerifyAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
package/build/api/auth.js CHANGED
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import instance, { httpClient } from './axios';
12
+ import { httpClient } from './axios';
13
13
  import { ENDPOINT_PATHS } from '../constants';
14
14
  var createAuth = function (data, config) {
15
15
  return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.AUTH), data: data }, config));
@@ -17,8 +17,12 @@ var createAuth = function (data, config) {
17
17
  var createExpressAuth = function (data, config) {
18
18
  return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.CREATE_EXPRESS_AUTH_PATH), data: data }, config));
19
19
  };
20
- var verifyAuth = function (data, config) {
21
- return instance.put("".concat(ENDPOINT_PATHS.AUTH), data, config);
20
+ var verifyAuth = function (data) {
21
+ return httpClient({
22
+ method: 'put',
23
+ url: "".concat(ENDPOINT_PATHS.AUTH),
24
+ data: data
25
+ });
22
26
  };
23
27
  var createPassword = function (data) {
24
28
  return httpClient({
@@ -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: () => import("axios").AxiosRequestHeaders;
5
+ export declare const getAxiosHeaders: () => Record<string, any>;
6
6
  export declare const httpClient: (config: AxiosRequestConfig) => Promise<any>;
7
7
  export default instance;
@@ -133,6 +133,9 @@ export declare type CreateEntityBody = {
133
133
  license: {
134
134
  number: string;
135
135
  type: string;
136
+ additional_info?: {
137
+ unified_number: string;
138
+ };
136
139
  };
137
140
  country: string;
138
141
  is_licensed?: boolean;
@@ -0,0 +1,5 @@
1
+ export declare const getAuthHeaders: (authSession?: string) => {
2
+ st: string;
3
+ } | {
4
+ st?: undefined;
5
+ };
@@ -0,0 +1,3 @@
1
+ export var getAuthHeaders = function (authSession) {
2
+ return authSession ? { st: authSession } : {};
3
+ };
@@ -20,7 +20,7 @@ declare const API: {
20
20
  };
21
21
  operatorService: {
22
22
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
23
- confirm: (data: ConfirmBody) => Promise<any>;
23
+ confirm: (data: ConfirmBody, authSession?: string) => Promise<any>;
24
24
  };
25
25
  countryService: {
26
26
  getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
@@ -31,7 +31,7 @@ declare const API: {
31
31
  };
32
32
  authService: {
33
33
  createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
34
- verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
34
+ verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody) => Promise<any>;
35
35
  createPassword: (data: CreatePasswordBody) => Promise<any>;
36
36
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
37
37
  getVerifyAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
@@ -90,8 +90,8 @@ declare const API: {
90
90
  accountService: {
91
91
  createAccount: (data: CreateAccountBody) => Promise<any>;
92
92
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
93
- checkAccountAvailability: (individualId: string) => Promise<any>;
94
- checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
93
+ checkAccountAvailability: (individualId: string, authSession?: string | undefined) => Promise<any>;
94
+ checkAccountAvailabilityStatus: (individualId: string, authSession?: string | undefined) => Promise<any>;
95
95
  checkMigrationStatus: (jobId: string) => Promise<any>;
96
96
  };
97
97
  dataService: {
@@ -49,6 +49,7 @@ export declare type UpdateLeadBody = {
49
49
  entity?: {
50
50
  id: string;
51
51
  };
52
+ unified_number?: string;
52
53
  name?: Name;
53
54
  contact?: Contact;
54
55
  send_invite?: boolean;
@@ -17,6 +17,6 @@ export declare type ConfirmBody = {
17
17
  };
18
18
  declare const operatorService: {
19
19
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
20
- confirm: (data: ConfirmBody) => Promise<any>;
20
+ confirm: (data: ConfirmBody, authSession?: string) => Promise<any>;
21
21
  };
22
22
  export { operatorService };
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  import { ENDPOINT_PATHS } from '../constants';
38
38
  import { httpClient } from './axios';
39
+ import { getAuthHeaders } from './headers';
39
40
  var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0, function () {
40
41
  var data, error_1;
41
42
  return __generator(this, function (_a) {
@@ -59,11 +60,13 @@ var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0
59
60
  }
60
61
  });
61
62
  }); };
62
- var confirm = function (data) {
63
+ var confirm = function (data, authSession) {
64
+ if (authSession === void 0) { authSession = ''; }
63
65
  return httpClient({
64
66
  method: 'post',
65
67
  url: "".concat(ENDPOINT_PATHS.CONNECT, "/confirm"),
66
- data: data
68
+ data: data,
69
+ headers: getAuthHeaders(authSession)
67
70
  });
68
71
  };
69
72
  var operatorService = {
@@ -14,6 +14,7 @@ export declare const onCloseComplete: import("@reduxjs/toolkit").AsyncThunk<void
14
14
  merchantId: string;
15
15
  brandId: string;
16
16
  entityId: string;
17
+ nextScreen?: string | undefined;
17
18
  }, {}>;
18
19
  export interface SettingsData {
19
20
  skin: ThemeMode;
@@ -56,7 +56,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
56
56
  };
57
57
  var _a;
58
58
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
- import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage } from '../utils';
59
+ import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage, sleep } from '../utils';
60
60
  import { BUSINESS_COUNTRIES, DEFAULT_COUNTRY_ISO2, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
61
61
  import i18n from '../i18n';
62
62
  import { updateLocale } from '../utils/locale';
@@ -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.businessCountryCode);
115
+ setBaseUrl(configInfo.publicKey, appConfig.region);
116
116
  }
117
117
  thunkApi.dispatch(handlePublicKey(configInfo.publicKey));
118
118
  }
@@ -179,7 +179,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
179
179
  });
180
180
  }); });
181
181
  export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
182
- var settings, _a, appConfig, authId, postURL, redirectUrl, bi, merchantId, brandId, entityId, body, data, urlQueryStart, newUrl;
182
+ var settings, _a, appConfig, authId, postURL, redirectUrl, bi, merchantId, brandId, entityId, nextScreen, body, data, urlQueryStart, newUrl;
183
183
  var _b, _c;
184
184
  return __generator(this, function (_d) {
185
185
  switch (_d.label) {
@@ -188,7 +188,7 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
188
188
  _a = settings.data, appConfig = _a.appConfig, authId = _a.authId;
189
189
  postURL = appConfig.postURL, redirectUrl = appConfig.redirectUrl;
190
190
  bi = settings.data.deviceInfo.browser.browser_id;
191
- merchantId = params.merchantId, brandId = params.brandId, entityId = params.entityId;
191
+ merchantId = params.merchantId, brandId = params.brandId, entityId = params.entityId, nextScreen = params.nextScreen;
192
192
  if (!authId) return [3, 2];
193
193
  body = {
194
194
  post_url: postURL || '',
@@ -203,6 +203,10 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
203
203
  case 1:
204
204
  data = _d.sent();
205
205
  (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, data);
206
+ if (nextScreen) {
207
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen(nextScreen)); });
208
+ return [2];
209
+ }
206
210
  if (settings.data.appConfig.mode === 'popup') {
207
211
  settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
208
212
  thunkApi.dispatch(handleOpen(false));
@@ -358,7 +362,6 @@ export var settingsSlice = createSlice({
358
362
  if (state.data.locale && country.iso2)
359
363
  updateLocale(state.data.locale, country.iso2);
360
364
  state.data.businessCountry = country;
361
- setBaseUrl(state.data.appConfig.publicKey, country.iso2);
362
365
  }
363
366
  }
364
367
  },
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare type AEDSymbolProps = React.SVGProps<SVGSVGElement> & {
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ declare const AEDSymbol: ({ height, ...svgProps }: AEDSymbolProps) => JSX.Element;
7
+ export default AEDSymbol;
@@ -0,0 +1,28 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ var AEDSymbol = function (_a) {
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', 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
+ };
28
+ export default AEDSymbol;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ declare type SARSymbolProps = React.SVGProps<SVGSVGElement> & {
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ declare const SARSymbol: ({ height, ...svgProps }: SARSymbolProps) => JSX.Element;
7
+ export default SARSymbol;
@@ -0,0 +1,28 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ var SARSymbol = function (_a) {
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', 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
+ };
28
+ export default SARSymbol;
@@ -0,0 +1,2 @@
1
+ import { CURRENCY_ICON } from './utils';
2
+ export { CURRENCY_ICON };
@@ -0,0 +1,2 @@
1
+ import { CURRENCY_ICON } from './utils';
2
+ export { CURRENCY_ICON };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare type CurrencyIconMap = Record<string, React.FC>;
3
+ export declare const CURRENCY_ICON: CurrencyIconMap;
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import SARSymbol from './SARSymbol';
2
+ import AEDSymbol from './AEDSymbol';
3
+ export var CURRENCY_ICON = {
4
+ SA: SARSymbol,
5
+ AE: AEDSymbol
6
+ };
@@ -135,13 +135,17 @@
135
135
  "call_center_placeholder": "رقم هاتف خدمة الإتصال",
136
136
  "cancel": "إلغاء",
137
137
  "capital_paid_hint": "00000",
138
+ "capital_paid_input_label": "رأس المال المدفوع",
138
139
  "capital_paid_label": "رأس المال المدفوع ({{currency}})",
140
+ "capital_paid_input_label": "رأس المال المدفوع",
139
141
  "capital_paid_required": "Please Enter paid amount",
140
142
  "capital_share_count_hint": "00000",
141
143
  "capital_share_count_label": "عدد اسهم رأس المال",
142
144
  "capital_share_count_required": "Please Enter share count",
143
145
  "capital_share_value_hint": "00000",
146
+ "capital_share_value_input_label": "قيمة السهم",
144
147
  "capital_share_value_label": "قيمة السهم ({{currency}})",
148
+ "capital_share_value_input_label": "قيمة السهم",
145
149
  "capital_share_value_required": "Please Enter share value",
146
150
  "category": "الفئة",
147
151
  "category_name": "اسم الفئة",
@@ -207,6 +211,7 @@
207
211
  "create_new_entity": "Create Entity",
208
212
  "creating_account_description": "هذه العملية تحتاج وقت...",
209
213
  "creating_account_title": "جارى انشاء الحساب",
214
+ "current_mobile_number": "رقم الجوال الحالي",
210
215
  "customer_base_name_hint": "اختر محليًا إذا كنت تبيع فقط في البلد الذي تقيم فيه. اختر إقليميًا إذا كنت تبيع أيضًا لدول مجلس التعاون الخليجي الأخرى. اختر عالمياً إذا كنت تبيع إلى أي دولة خارج دول مجلس التعاون الخليجي.",
211
216
  "data_loading_desc": "الرجاء الانتظار أثناء تحضير البيانات",
212
217
  "data_loading_title": "تحضير البيانات",
@@ -279,7 +284,9 @@
279
284
  "entity_type": "نوع الكيان",
280
285
  "entity_type_required": "Please select at least one entity type",
281
286
  "expected_customers_to_serve": "عدد العملاء شهريا",
287
+ "expected_sale_per_month": "البيع المتوقع في الشهر؟",
282
288
  "expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
289
+ "expected_sale_per_month": "البيع المتوقع في الشهر؟",
283
290
  "expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
284
291
  "expected_served_monthly": "عدد العملاء شهريا",
285
292
  "expiry_date": "تاريخ الإنتهاء",
@@ -375,7 +382,6 @@
375
382
  "kyc_terms_title": "وثائق قانونية",
376
383
  "kyc_token_invalid": "الرجاء مراجعة رابط المرسل اليك",
377
384
  "kyc_users_description": "يرجى اختيار رقم هوية الممثل المعتمد للموافقة عليه مع {{provider}}",
378
- "kyc_privacy_policy": "سياسة الخصوصية",
379
385
  "language": "English",
380
386
  "license_info": "معلومات الترخيص",
381
387
  "license_name_hint": "Enter legal name",
@@ -387,6 +393,7 @@
387
393
  "loading": "تحميل...",
388
394
  "loading_bank_statement": "تحميل.......",
389
395
  "login_to_dashboard": "تسجيل الدخول لادارة الحساب",
396
+ "login_with_passcode": "تسجيل الدخول باستخدام رمز المرور",
390
397
  "mail_btn_open_title": "افتح البريد الإلكتروني",
391
398
  "marital_status": "الحالة الزوجية",
392
399
  "masking_symbols": "•••",
@@ -400,11 +407,14 @@
400
407
  "mobile_app_label": "تطبيقات هاتف",
401
408
  "mobile_button_label": "المتابعة عن طريق رقم الجوال",
402
409
  "mobile_number_description": "ابدأ فورًا باستخدام رقم هاتفك المحمول",
410
+ "mobile_ownership_title": "يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
403
411
  "month": "الشهر",
412
+ "monthly_income": "ما هو دخلك الشهري؟ ",
404
413
  "nafath_button_label": "المتابعة عن طريق نفاذ",
405
414
  "nafath_verification_description_check": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
406
415
  "nafath_verification_description_error": "حاول مرة اخرى",
407
416
  "nafath_verification_description_wait": "يرجى الدخول إلى تطبيق نفاذ الخاص بك وإدخال رقم الطلب أعلاه للمصادقة.",
417
+ "nafath_verification_failed": "تأكد من الموافقة على الطلب المرسل عبر تطبيق نفاذ، يرجى محاولة إرسال طلب جديد.",
408
418
  "nafath_verification_redirection_message": "سيتم إعادة توجيهك الآن",
409
419
  "nafath_verification_title_check": "المصادقة مع تطبيق نفاذ",
410
420
  "nafath_verification_title_error": "لا يمكننا تأكيد المصادقة الخاصة بك",
@@ -414,6 +424,7 @@
414
424
  "national_id_placeholder": "0000000000",
415
425
  "national_id_title": "الهوية الوطنية",
416
426
  "nationality_label": "الجنسية",
427
+ "new_mobile_number": "رقم الجوال الجديد",
417
428
  "next": "التالي",
418
429
  "no": "لا",
419
430
  "no_results": "لا نتائج",
@@ -449,6 +460,8 @@
449
460
  "paci_verify_loading": "إحضار التفاصيل",
450
461
  "paci_verify_loading_desc": "الرجاء التحلي بالصبر حتى التحقق من التفاصيل",
451
462
  "paci_waiting_title": "Please wait we are verifying",
463
+ "passcode_required": "الرجاء إدخال رمز المرور المطلوب",
464
+ "passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
452
465
  "password_flow_completed": "إعادة تعيين كلمة المرور",
453
466
  "password_flow_pending": "إعداد كلمة المرور",
454
467
  "password_flow_title": "إعداد كلمة المرور",
@@ -483,6 +496,7 @@
483
496
  "please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
484
497
  "please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
485
498
  "please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
499
+ "monthly_income": "ما هو دخلك الشهري؟ ",
486
500
  "please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
487
501
  "please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
488
502
  "powered_by": "بواسطة",
@@ -522,7 +536,9 @@
522
536
  "share_count_hint": "0",
523
537
  "share_count_label": "عدد الأسهم",
524
538
  "share_value_hint": "0000",
539
+ "share_value_input_label": "قيمة السهم",
525
540
  "share_value_label": "قيمة السهم ({{currency}})",
541
+ "sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
526
542
  "sign_up": "Sign up",
527
543
  "signed_up": "تسجيل الدخول",
528
544
  "signin_email_label": "البريد الألكتروني",
@@ -554,6 +570,7 @@
554
570
  "signup_welcoming": "مرحبًا {{username}} ،",
555
571
  "signup_welcoming_hi": "مرحبا,",
556
572
  "social_media_label": "وسائل التواصل الاجتماعي",
573
+ "something_went_wrong": "حدث خطأ. يرجى المحاولة لاحقاً",
557
574
  "source_country_label": "الدولة",
558
575
  "start_with_number": "هل يمكنك التحقق من رقم الجوال الذي تم إدخاله. (ملاحظة - يبدأ رقم الجوال بـ 5 أو 05)",
559
576
  "step_required_by_rayah": "هذه الخطوة مطلوبة لبدء التحقق مع خدمة يقين من شركة علم",
@@ -595,6 +612,34 @@
595
612
  "tax_success_header_title": "اكتملت الضريبة",
596
613
  "tax_success_title": "تم تحديث المعلومات الضريبية الخاصة بعملك التجاري.",
597
614
  "team_size_title": "حجم الفريق",
615
+ "terminal_device_id": "رقم تعريف جهاز الكاشير",
616
+ "terminal_devices": "{{name}} أجهزة",
617
+ "terminal_flow_pending": "أجهزة نقاط الدفع",
618
+ "terminal_go_to_board": "الانتقال إلى اللوحة",
619
+ "terminal_id": "رقم تعريف جهاز نقطة الدفع",
620
+ "terminal_link": "ربط",
621
+ "terminal_link_terminal": "ربط جهاز نقطة الدفع",
622
+ "terminal_linked": "تمَّ الربط",
623
+ "terminal_linked_success": "تم ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
624
+ "terminal_linked_with": "مرتبط مع",
625
+ "terminal_manage_terminals": "إدارة أجهزة نقاط الدفع",
626
+ "terminal_new_request_will_send": "لتأكيد الربط تمَّ إرسال طلب ربط جديد إلى تطبيق الـ Terminal من تاب.",
627
+ "terminal_no_terminal_linked": "لا يوجد أجهزة نقاط دفع مرتبطة",
628
+ "terminal_no_terminal_linked_description": "سيتم عرض أجهزة نقاط الدفع المرتبطة هنا عند توفّرها",
629
+ "terminal_or_use_code": "أو استخدم الرمز",
630
+ "terminal_paired_with": "مقترن بـ",
631
+ "terminal_push_notification_link_new_terminal_failed": "حدث خطأ. يرجى المحاولة لاحقاً",
632
+ "terminal_qr_code_description": "افتح تطبيق تاب على جهاز نقطة الدفع، ثم اختر جهاز نقطة الدفع المرتبط من قائمة المزيد.",
633
+ "terminal_request_denied": "تمَّ رفض طلب ربط جهاز نقطة الدفع {{device }}",
634
+ "terminal_request_will_send": "لتأكيد الربط سيتم إرسال طلب إلى تطبيق الـ Terminal من تاب.",
635
+ "terminal_resend_request": "إعادة إرسال الطلب",
636
+ "terminal_select_device": "اختر جهاز نقطة الدفع",
637
+ "terminal_send_link_request": "إرسال طلب الربط",
638
+ "terminal_serial_number": "الرقم التسلسلي",
639
+ "terminal_unlink": "إلغاء الربط",
640
+ "terminal_unlinked": "غير مرتبط",
641
+ "terminal_unlinked_success": "تم إلغاء ربط جهاز نقطة الدفع {{device}} الخاص بك بنجاح!",
642
+ "terminal_with": "مع",
598
643
  "terms_and_conditions_link_title": "الشروط والاحكام",
599
644
  "the nin format is not valid": "هل يمكنك التحقق من رقم الهوية الذي تم إدخاله.",
600
645
  "title_article": "مذكرة التأسيس",
@@ -615,7 +660,13 @@
615
660
  "unified_number_hint": "000000",
616
661
  "unified_number_label": "الرقم الموحد",
617
662
  "unified_number_required": "Unified Number Required",
663
+ "update_later": "سأقوم بالتحديث لاحقاً",
664
+ "update_mobile_number": "تحديث رقم الجوال",
618
665
  "uploaded_file": "file",
666
+ "v1_add_unified_number": "أضف الرقم الموحد",
667
+ "v1_company_unified_number_description": "يمكنك العثور على الرقم الموحد لشركتك في الزاوية العلوية اليسرى من شهادة تسجيل الشركة.",
668
+ "v1_company_unified_number_hint": "700xxxxxxx",
669
+ "v1_company_unified_number_label": "الرقم الموحد للشركة",
619
670
  "vat_id": "رقم الضريبي المميز",
620
671
  "vat_id_placeholder": "00000000",
621
672
  "verification_brand_name": "الاسم التجاري",
@@ -633,10 +684,5 @@
633
684
  "year": "السنة",
634
685
  "yes": "نعم",
635
686
  "your_brand_details": "تفاصيل علامتك التجارية",
636
- "يرجى التحقق من اسم تطبيق ابل": "",
637
- "mobile_ownership_title": "لتفعيل استلام الايداعات، يرجى تحديث رقم هاتفك المحمول المسجل ليتوافق مع هويتك.",
638
- "current_mobile_number": "رقم الجوال الحالي",
639
- "new_mobile_number": "رقم الجوال الجديد",
640
- "update_mobile_number": "تحديث رقم الجوال",
641
- "update_later": "سأقوم بالتحديث لاحقاً"
687
+ "يرجى التحقق من اسم تطبيق ابل": ""
642
688
  }