@tap-payments/auth-jsconnect 2.8.63-development → 2.8.64-beta
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/redux.d.ts +0 -1
- package/build/api/entity.d.ts +2 -2
- package/build/api/entity.js +4 -12
- package/build/api/index.d.ts +2 -2
- package/build/app/settings.js +2 -3
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +2 -0
- package/build/constants/app.d.ts +3 -0
- package/build/constants/app.js +3 -0
- package/build/features/app/bank/bankStore.d.ts +19 -13
- package/build/features/app/bank/bankStore.js +165 -183
- package/build/features/app/board/boardStore.js +10 -16
- package/build/features/app/brand/brandStore.d.ts +31 -16
- package/build/features/app/brand/brandStore.js +239 -243
- package/build/features/app/business/businessStore.js +1 -7
- package/build/features/app/entity/entityStore.d.ts +34 -20
- package/build/features/app/entity/entityStore.js +249 -204
- package/build/features/app/individual/individualStore.d.ts +36 -17
- package/build/features/app/individual/individualStore.js +270 -221
- package/build/features/app/password/passwordStore.d.ts +25 -21
- package/build/features/app/password/passwordStore.js +219 -196
- package/build/features/app/tax/taxStore.d.ts +7 -13
- package/build/features/app/tax/taxStore.js +147 -168
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +4 -17
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +11 -48
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +4 -22
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +6 -22
- package/build/features/business/screens/Activities/Activities.js +1 -9
- package/build/features/business/screens/BusinessType/LicenseNumber.js +2 -2
- package/build/features/business/screens/Customers/Customers.js +1 -9
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -7
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +9 -33
- package/build/features/entity/screens/EntityName/EntityName.js +14 -31
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +10 -43
- package/build/features/individual/screens/IndividualList/IndividualList.js +0 -7
- package/build/features/individual/screens/IndividualList/UserList.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +18 -73
- package/build/features/password/Password.js +1 -1
- package/build/features/shared/Button/FlowsButtons.js +1 -7
- package/build/features/signIn/SignIn.js +2 -10
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -7
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/index.js +0 -1
- package/build/utils/common.js +4 -4
- package/build/utils/validation.d.ts +1 -0
- package/build/utils/validation.js +3 -0
- package/package.json +2 -2
- package/build/hooks/useFormDirtyCheck.d.ts +0 -10
- package/build/hooks/useFormDirtyCheck.js +0 -66
package/build/@types/redux.d.ts
CHANGED
package/build/api/entity.d.ts
CHANGED
|
@@ -139,8 +139,8 @@ export type CreateEntityBody = {
|
|
|
139
139
|
};
|
|
140
140
|
declare const entityService: {
|
|
141
141
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
142
|
-
updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any
|
|
143
|
-
createBankAccount: (data: EntityBankUpdateBody) => Promise<any
|
|
142
|
+
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
143
|
+
createBankAccount: (data: EntityBankUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
144
144
|
retrieveBankAccount: (id: string) => Promise<any>;
|
|
145
145
|
retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
146
146
|
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
package/build/api/entity.js
CHANGED
|
@@ -18,13 +18,9 @@ var createEntityInfo = function (_a, config) {
|
|
|
18
18
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
19
19
|
return instance.post("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/info"), data, config);
|
|
20
20
|
};
|
|
21
|
-
var updateEntityInfo = function (_a) {
|
|
21
|
+
var updateEntityInfo = function (_a, config) {
|
|
22
22
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
23
|
-
return
|
|
24
|
-
method: 'put',
|
|
25
|
-
url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id),
|
|
26
|
-
data: data
|
|
27
|
-
});
|
|
23
|
+
return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id), data, config);
|
|
28
24
|
};
|
|
29
25
|
var retrieveEntity = function (entity_id) {
|
|
30
26
|
return httpClient({
|
|
@@ -56,12 +52,8 @@ var updateEntityCapital = function (_a) {
|
|
|
56
52
|
data: data
|
|
57
53
|
});
|
|
58
54
|
};
|
|
59
|
-
var createBankAccount = function (data) {
|
|
60
|
-
return
|
|
61
|
-
method: 'put',
|
|
62
|
-
url: "".concat(ENDPOINT_PATHS.BANK),
|
|
63
|
-
data: data
|
|
64
|
-
});
|
|
55
|
+
var createBankAccount = function (data, config) {
|
|
56
|
+
return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
|
|
65
57
|
};
|
|
66
58
|
var retrieveBankAccount = function (id) {
|
|
67
59
|
return httpClient({
|
package/build/api/index.d.ts
CHANGED
|
@@ -59,8 +59,8 @@ declare const API: {
|
|
|
59
59
|
};
|
|
60
60
|
entityService: {
|
|
61
61
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
|
-
updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any
|
|
63
|
-
createBankAccount: (data: EntityBankUpdateBody) => Promise<any
|
|
62
|
+
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
|
+
createBankAccount: (data: EntityBankUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
64
64
|
retrieveBankAccount: (id: string) => Promise<any>;
|
|
65
65
|
retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
66
66
|
updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
package/build/app/settings.js
CHANGED
|
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage } from '../utils';
|
|
60
|
-
import { BUSINESS_COUNTRIES, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
|
|
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';
|
|
63
63
|
import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
|
|
@@ -161,8 +161,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
|
|
|
161
161
|
ipCountry = undefined;
|
|
162
162
|
if (countryCode)
|
|
163
163
|
businessCountry = findCountryByIso2(countries, countryCode);
|
|
164
|
-
|
|
165
|
-
ipCountry = findCountryByIso2(countries, country_code);
|
|
164
|
+
ipCountry = findCountryByIso2(countries, country_code !== null && country_code !== void 0 ? country_code : DEFAULT_COUNTRY_ISO2);
|
|
166
165
|
if (appConfig.onSettingFetched)
|
|
167
166
|
appConfig.onSettingFetched({
|
|
168
167
|
config: config,
|
|
@@ -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
package/build/constants/api.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
4
|
+
var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
|
|
4
5
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
5
6
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
6
7
|
var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
|
|
@@ -74,6 +75,7 @@ export var ENDPOINT_PATHS = {
|
|
|
74
75
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
75
76
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
76
77
|
DEV_BASE_URL: DEV_BASE_URL,
|
|
78
|
+
BETA_BASE_URL: BETA_BASE_URL,
|
|
77
79
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
78
80
|
COUNTRIES: API_COUNTRIES,
|
|
79
81
|
IP: IP_PATH,
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
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/";
|
|
@@ -9,6 +11,7 @@ export declare const LOCAL_STORAGE_KEYS: {
|
|
|
9
11
|
languageMode: string;
|
|
10
12
|
};
|
|
11
13
|
export declare const SCOPE_AUTH = "auth";
|
|
14
|
+
export declare const DEFAULT_COUNTRY_ISO2 = "KW";
|
|
12
15
|
export declare const EXTERNAL_LINKS: {
|
|
13
16
|
TOS_EN: string;
|
|
14
17
|
TOS_AR: string;
|
package/build/constants/app.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BusinessType } from '../@types';
|
|
2
2
|
export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
|
|
3
|
+
export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
|
|
4
|
+
export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
|
|
3
5
|
export var CONNECT_PROD_URL = 'https://connect.tap.company';
|
|
4
6
|
export var CLIENT_ORIGIN = window.location.origin;
|
|
5
7
|
export var TAP_WEBSITE = 'https://www.tap.company/';
|
|
@@ -9,6 +11,7 @@ export var LOCAL_STORAGE_KEYS = {
|
|
|
9
11
|
languageMode: 'languageMode'
|
|
10
12
|
};
|
|
11
13
|
export var SCOPE_AUTH = 'auth';
|
|
14
|
+
export var DEFAULT_COUNTRY_ISO2 = 'KW';
|
|
12
15
|
export var EXTERNAL_LINKS = {
|
|
13
16
|
TOS_EN: '/en/terms-conditions',
|
|
14
17
|
TOS_AR: '/ar/terms-conditions',
|
|
@@ -7,7 +7,20 @@ interface VerifyLeadTokenProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
9
|
data: any;
|
|
10
|
-
|
|
10
|
+
individualData: any;
|
|
11
|
+
boardResponse: {
|
|
12
|
+
user: any;
|
|
13
|
+
brand: any;
|
|
14
|
+
bank_account: any;
|
|
15
|
+
entity: any;
|
|
16
|
+
merchant: any;
|
|
17
|
+
name: any;
|
|
18
|
+
contact: any;
|
|
19
|
+
business: any;
|
|
20
|
+
individuals: any;
|
|
21
|
+
notification: any;
|
|
22
|
+
board_status: any;
|
|
23
|
+
};
|
|
11
24
|
token: string;
|
|
12
25
|
}, VerifyLeadTokenProps, {
|
|
13
26
|
state?: unknown;
|
|
@@ -33,7 +46,6 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
33
46
|
}>;
|
|
34
47
|
export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
35
48
|
data: any;
|
|
36
|
-
bankData: any;
|
|
37
49
|
formData: OTPFormValues;
|
|
38
50
|
}, OTPFormValues, {
|
|
39
51
|
state?: unknown;
|
|
@@ -57,12 +69,9 @@ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
57
69
|
fulfilledMeta?: unknown;
|
|
58
70
|
rejectedMeta?: unknown;
|
|
59
71
|
}>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
individualType: string;
|
|
64
|
-
};
|
|
65
|
-
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
|
|
72
|
+
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
73
|
+
data: any;
|
|
74
|
+
}, string, {
|
|
66
75
|
state?: unknown;
|
|
67
76
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
68
77
|
extra?: unknown;
|
|
@@ -102,11 +111,8 @@ export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
102
111
|
rejectedMeta?: unknown;
|
|
103
112
|
}>;
|
|
104
113
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
} | {
|
|
108
|
-
data: any;
|
|
109
|
-
flows: any;
|
|
114
|
+
response: any;
|
|
115
|
+
formData: void;
|
|
110
116
|
} | undefined, void, {
|
|
111
117
|
state?: unknown;
|
|
112
118
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|