@tap-payments/auth-jsconnect 2.8.62-beta → 2.8.62-development
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 +1 -0
- package/build/api/entity.d.ts +2 -2
- package/build/api/entity.js +12 -4
- package/build/api/index.d.ts +2 -2
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/constants/api.d.ts +0 -1
- package/build/constants/api.js +0 -2
- package/build/constants/app.d.ts +0 -2
- package/build/constants/app.js +0 -2
- package/build/features/app/bank/bankStore.d.ts +13 -19
- package/build/features/app/bank/bankStore.js +183 -165
- package/build/features/app/board/boardStore.js +16 -10
- package/build/features/app/brand/brandStore.d.ts +16 -31
- package/build/features/app/brand/brandStore.js +243 -239
- package/build/features/app/business/businessStore.js +7 -1
- package/build/features/app/entity/entityStore.d.ts +20 -34
- package/build/features/app/entity/entityStore.js +204 -249
- package/build/features/app/individual/individualStore.d.ts +17 -36
- package/build/features/app/individual/individualStore.js +221 -270
- package/build/features/app/password/passwordStore.d.ts +19 -25
- package/build/features/app/password/passwordStore.js +170 -216
- package/build/features/app/tax/taxStore.d.ts +13 -7
- package/build/features/app/tax/taxStore.js +168 -147
- package/build/features/bank/screens/BankDetails/BankDetails.js +17 -4
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
- package/build/features/business/screens/Activities/Activities.js +9 -1
- package/build/features/business/screens/Customers/Customers.js +9 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
- package/build/features/entity/screens/EntityName/EntityName.js +31 -14
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +43 -10
- package/build/features/individual/screens/IndividualList/IndividualList.js +7 -0
- package/build/features/individual/screens/IndividualList/UserList.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
- package/build/features/password/Password.js +1 -1
- package/build/features/shared/Button/FlowsButtons.js +7 -1
- package/build/features/signIn/SignIn.js +10 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useFormDirtyCheck.d.ts +10 -0
- package/build/hooks/useFormDirtyCheck.js +66 -0
- package/build/utils/common.js +4 -4
- package/package.json +2 -2
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
|
|
143
|
-
createBankAccount: (data: EntityBankUpdateBody
|
|
142
|
+
updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
143
|
+
createBankAccount: (data: EntityBankUpdateBody) => Promise<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,9 +18,13 @@ 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) {
|
|
22
22
|
var id = _a.id, data = __rest(_a, ["id"]);
|
|
23
|
-
return
|
|
23
|
+
return httpClient({
|
|
24
|
+
method: 'put',
|
|
25
|
+
url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id),
|
|
26
|
+
data: data
|
|
27
|
+
});
|
|
24
28
|
};
|
|
25
29
|
var retrieveEntity = function (entity_id) {
|
|
26
30
|
return httpClient({
|
|
@@ -52,8 +56,12 @@ var updateEntityCapital = function (_a) {
|
|
|
52
56
|
data: data
|
|
53
57
|
});
|
|
54
58
|
};
|
|
55
|
-
var createBankAccount = function (data
|
|
56
|
-
return
|
|
59
|
+
var createBankAccount = function (data) {
|
|
60
|
+
return httpClient({
|
|
61
|
+
method: 'put',
|
|
62
|
+
url: "".concat(ENDPOINT_PATHS.BANK),
|
|
63
|
+
data: data
|
|
64
|
+
});
|
|
57
65
|
};
|
|
58
66
|
var retrieveBankAccount = function (id) {
|
|
59
67
|
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
|
|
63
|
-
createBankAccount: (data: EntityBankUpdateBody
|
|
62
|
+
updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
|
|
63
|
+
createBankAccount: (data: EntityBankUpdateBody) => Promise<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>;
|
|
@@ -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)) }),
|
|
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,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
6
5
|
var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
|
|
7
6
|
var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
|
|
@@ -75,7 +74,6 @@ export var ENDPOINT_PATHS = {
|
|
|
75
74
|
SANDBOX_BASE_URL: SANDBOX_BASE_URL,
|
|
76
75
|
PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
|
|
77
76
|
DEV_BASE_URL: DEV_BASE_URL,
|
|
78
|
-
BETA_BASE_URL: BETA_BASE_URL,
|
|
79
77
|
BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
|
|
80
78
|
COUNTRIES: API_COUNTRIES,
|
|
81
79
|
IP: IP_PATH,
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
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";
|
|
5
3
|
export declare const CONNECT_PROD_URL = "https://connect.tap.company";
|
|
6
4
|
export declare const CLIENT_ORIGIN: string;
|
|
7
5
|
export declare const TAP_WEBSITE = "https://www.tap.company/";
|
package/build/constants/app.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
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';
|
|
5
3
|
export var CONNECT_PROD_URL = 'https://connect.tap.company';
|
|
6
4
|
export var CLIENT_ORIGIN = window.location.origin;
|
|
7
5
|
export var TAP_WEBSITE = 'https://www.tap.company/';
|
|
@@ -7,20 +7,7 @@ interface VerifyLeadTokenProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
9
|
data: any;
|
|
10
|
-
|
|
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
|
-
};
|
|
10
|
+
bankData: any;
|
|
24
11
|
token: string;
|
|
25
12
|
}, VerifyLeadTokenProps, {
|
|
26
13
|
state?: unknown;
|
|
@@ -46,6 +33,7 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
46
33
|
}>;
|
|
47
34
|
export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
48
35
|
data: any;
|
|
36
|
+
bankData: any;
|
|
49
37
|
formData: OTPFormValues;
|
|
50
38
|
}, OTPFormValues, {
|
|
51
39
|
state?: unknown;
|
|
@@ -69,9 +57,12 @@ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
69
57
|
fulfilledMeta?: unknown;
|
|
70
58
|
rejectedMeta?: unknown;
|
|
71
59
|
}>;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
60
|
+
type RetrieveBoardProps = {
|
|
61
|
+
boardId: string;
|
|
62
|
+
individualId: string;
|
|
63
|
+
individualType: string;
|
|
64
|
+
};
|
|
65
|
+
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
|
|
75
66
|
state?: unknown;
|
|
76
67
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
77
68
|
extra?: unknown;
|
|
@@ -111,8 +102,11 @@ export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
111
102
|
rejectedMeta?: unknown;
|
|
112
103
|
}>;
|
|
113
104
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
data: any;
|
|
106
|
+
flows?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
data: any;
|
|
109
|
+
flows: any;
|
|
116
110
|
} | undefined, void, {
|
|
117
111
|
state?: unknown;
|
|
118
112
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|