@tap-payments/auth-jsconnect 2.8.63-sandbox → 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.
Files changed (51) hide show
  1. package/build/@types/redux.d.ts +0 -1
  2. package/build/api/entity.d.ts +2 -2
  3. package/build/api/entity.js +4 -12
  4. package/build/api/index.d.ts +2 -2
  5. package/build/constants/api.d.ts +1 -0
  6. package/build/constants/api.js +2 -0
  7. package/build/constants/app.d.ts +1 -0
  8. package/build/constants/app.js +1 -0
  9. package/build/features/app/bank/bankStore.d.ts +19 -13
  10. package/build/features/app/bank/bankStore.js +165 -183
  11. package/build/features/app/board/boardStore.js +10 -16
  12. package/build/features/app/brand/brandStore.d.ts +31 -16
  13. package/build/features/app/brand/brandStore.js +239 -243
  14. package/build/features/app/business/businessStore.js +1 -7
  15. package/build/features/app/entity/entityStore.d.ts +34 -20
  16. package/build/features/app/entity/entityStore.js +249 -204
  17. package/build/features/app/individual/individualStore.d.ts +36 -17
  18. package/build/features/app/individual/individualStore.js +270 -221
  19. package/build/features/app/password/passwordStore.d.ts +25 -19
  20. package/build/features/app/password/passwordStore.js +216 -170
  21. package/build/features/app/tax/taxStore.d.ts +7 -13
  22. package/build/features/app/tax/taxStore.js +147 -168
  23. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  24. package/build/features/bank/screens/BankDetails/BankDetails.js +4 -17
  25. package/build/features/brand/screens/BrandActivities/BrandActivities.js +11 -48
  26. package/build/features/brand/screens/BrandInfo/BrandInfo.js +4 -22
  27. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +6 -22
  28. package/build/features/business/screens/Activities/Activities.js +1 -9
  29. package/build/features/business/screens/BusinessType/LicenseNumber.js +2 -2
  30. package/build/features/business/screens/Customers/Customers.js +1 -9
  31. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -7
  32. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  33. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  34. package/build/features/entity/screens/EntityCapital/EntityCapital.js +9 -33
  35. package/build/features/entity/screens/EntityName/EntityName.js +14 -31
  36. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +10 -43
  37. package/build/features/individual/screens/IndividualList/IndividualList.js +0 -7
  38. package/build/features/individual/screens/IndividualList/UserList.js +3 -3
  39. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +18 -73
  40. package/build/features/password/Password.js +1 -1
  41. package/build/features/shared/Button/FlowsButtons.js +1 -7
  42. package/build/features/signIn/SignIn.js +2 -10
  43. package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -7
  44. package/build/hooks/index.d.ts +0 -1
  45. package/build/hooks/index.js +0 -1
  46. package/build/utils/common.js +3 -3
  47. package/build/utils/validation.d.ts +1 -0
  48. package/build/utils/validation.js +3 -0
  49. package/package.json +2 -2
  50. package/build/hooks/useFormDirtyCheck.d.ts +0 -10
  51. package/build/hooks/useFormDirtyCheck.js +0 -66
@@ -15,5 +15,4 @@ export interface ResponseData {
15
15
  export interface AsyncThunkParams<T> {
16
16
  formData: T;
17
17
  originalFormData: T;
18
- isDirty: boolean;
19
18
  }
@@ -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>;
@@ -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 httpClient({
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 httpClient({
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({
@@ -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>;
@@ -12,6 +12,7 @@ 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;
15
16
  BUSINESS_COUNTRIES: string;
16
17
  COUNTRIES: string;
17
18
  IP: string;
@@ -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,
@@ -1,6 +1,7 @@
1
1
  import { ScreenStepNavigation, BusinessType } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
3
  export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
+ export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
4
5
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
5
6
  export declare const CLIENT_ORIGIN: string;
6
7
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -1,6 +1,7 @@
1
1
  import { BusinessType } from '../@types';
2
2
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
3
3
  export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
4
+ export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
4
5
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
5
6
  export var CLIENT_ORIGIN = window.location.origin;
6
7
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -7,7 +7,20 @@ interface VerifyLeadTokenProps {
7
7
  }
8
8
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
9
9
  data: any;
10
- bankData: 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
+ };
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
- type RetrieveBoardProps = {
61
- boardId: string;
62
- individualId: string;
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
- data: any;
106
- flows?: undefined;
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;