@tap-payments/auth-jsconnect 2.8.61-beta → 2.8.61-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.
Files changed (46) hide show
  1. package/build/@types/redux.d.ts +1 -0
  2. package/build/api/entity.d.ts +2 -2
  3. package/build/api/entity.js +12 -4
  4. package/build/api/index.d.ts +2 -2
  5. package/build/components/Tooltip/Tooltip.js +1 -1
  6. package/build/constants/api.d.ts +0 -1
  7. package/build/constants/api.js +0 -2
  8. package/build/constants/app.d.ts +0 -2
  9. package/build/constants/app.js +0 -2
  10. package/build/features/app/bank/bankStore.d.ts +13 -19
  11. package/build/features/app/bank/bankStore.js +183 -165
  12. package/build/features/app/board/boardStore.js +16 -10
  13. package/build/features/app/brand/brandStore.d.ts +16 -31
  14. package/build/features/app/brand/brandStore.js +243 -239
  15. package/build/features/app/business/businessStore.js +7 -1
  16. package/build/features/app/entity/entityStore.d.ts +20 -34
  17. package/build/features/app/entity/entityStore.js +204 -249
  18. package/build/features/app/individual/individualStore.d.ts +17 -36
  19. package/build/features/app/individual/individualStore.js +221 -270
  20. package/build/features/app/password/passwordStore.d.ts +19 -25
  21. package/build/features/app/password/passwordStore.js +170 -216
  22. package/build/features/app/tax/taxStore.d.ts +13 -7
  23. package/build/features/app/tax/taxStore.js +168 -147
  24. package/build/features/bank/screens/BankDetails/BankDetails.js +17 -4
  25. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  26. package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
  27. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  28. package/build/features/business/screens/Activities/Activities.js +9 -1
  29. package/build/features/business/screens/Customers/Customers.js +9 -1
  30. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  31. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  32. package/build/features/entity/screens/EntityName/EntityName.js +31 -14
  33. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +43 -10
  34. package/build/features/individual/screens/IndividualList/IndividualList.js +7 -0
  35. package/build/features/individual/screens/IndividualList/UserList.js +3 -3
  36. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
  37. package/build/features/password/Password.js +1 -1
  38. package/build/features/shared/Button/FlowsButtons.js +7 -1
  39. package/build/features/signIn/SignIn.js +10 -2
  40. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  41. package/build/hooks/index.d.ts +1 -0
  42. package/build/hooks/index.js +1 -0
  43. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  44. package/build/hooks/useFormDirtyCheck.js +66 -0
  45. package/build/utils/common.js +4 -4
  46. package/package.json +2 -2
@@ -15,4 +15,5 @@ export interface ResponseData {
15
15
  export interface AsyncThunkParams<T> {
16
16
  formData: T;
17
17
  originalFormData: T;
18
+ isDirty: boolean;
18
19
  }
@@ -139,8 +139,8 @@ export declare 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, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
143
- createBankAccount: (data: EntityBankUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
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>;
@@ -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, config) {
21
+ var updateEntityInfo = function (_a) {
22
22
  var id = _a.id, data = __rest(_a, ["id"]);
23
- return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id), data, config);
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, config) {
56
- return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
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({
@@ -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, 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>>;
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)), zIndex: 2147483647 }),
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) {
@@ -12,7 +12,6 @@ export declare const ENDPOINT_PATHS: {
12
12
  SANDBOX_BASE_URL: string;
13
13
  PRODUCTION_BASE_URL: string;
14
14
  DEV_BASE_URL: string;
15
- BETA_BASE_URL: string;
16
15
  BUSINESS_COUNTRIES: string;
17
16
  COUNTRIES: string;
18
17
  IP: string;
@@ -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,
@@ -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/";
@@ -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
- 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
- };
10
+ bankData: any;
24
11
  token: string;
25
12
  }, VerifyLeadTokenProps, {}>;
26
13
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
@@ -28,14 +15,18 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
28
15
  }, void, {}>;
29
16
  export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
30
17
  data: any;
18
+ bankData: any;
31
19
  formData: OTPFormValues;
32
20
  }, OTPFormValues, {}>;
33
21
  export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
34
22
  flows: any;
35
23
  }, void, {}>;
36
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
37
- data: any;
38
- }, string, {}>;
24
+ declare type RetrieveBoardProps = {
25
+ boardId: string;
26
+ individualId: string;
27
+ individualType: string;
28
+ };
29
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {}>;
39
30
  export declare const createBankAccount: import("@reduxjs/toolkit").AsyncThunk<{
40
31
  data: any;
41
32
  formData: BankFormValues;
@@ -48,8 +39,11 @@ export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
48
39
  onSuccess?: (() => void) | undefined;
49
40
  }, {}>;
50
41
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
51
- response: any;
52
- formData: void;
42
+ data: any;
43
+ flows?: undefined;
44
+ } | {
45
+ data: any;
46
+ flows: any;
53
47
  } | undefined, void, {}>;
54
48
  export declare const onCloseCompleteBank: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
55
49
  declare type VerifyData = {