@tap-payments/auth-jsconnect 2.8.65-beta → 2.8.65-sandbox

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 (45) 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/constants/api.d.ts +0 -1
  6. package/build/constants/api.js +0 -2
  7. package/build/constants/app.d.ts +0 -1
  8. package/build/constants/app.js +0 -1
  9. package/build/features/app/bank/bankStore.d.ts +13 -19
  10. package/build/features/app/bank/bankStore.js +183 -165
  11. package/build/features/app/board/boardStore.js +16 -10
  12. package/build/features/app/brand/brandStore.d.ts +16 -31
  13. package/build/features/app/brand/brandStore.js +243 -239
  14. package/build/features/app/business/businessStore.js +7 -1
  15. package/build/features/app/entity/entityStore.d.ts +20 -34
  16. package/build/features/app/entity/entityStore.js +204 -249
  17. package/build/features/app/individual/individualStore.d.ts +17 -36
  18. package/build/features/app/individual/individualStore.js +221 -270
  19. package/build/features/app/password/passwordStore.d.ts +19 -25
  20. package/build/features/app/password/passwordStore.js +170 -216
  21. package/build/features/app/tax/taxStore.d.ts +13 -7
  22. package/build/features/app/tax/taxStore.js +168 -147
  23. package/build/features/bank/screens/BankDetails/BankDetails.js +17 -4
  24. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  25. package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
  26. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  27. package/build/features/business/screens/Activities/Activities.js +9 -1
  28. package/build/features/business/screens/Customers/Customers.js +9 -1
  29. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  30. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  31. package/build/features/entity/screens/EntityName/EntityName.js +31 -14
  32. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +43 -10
  33. package/build/features/individual/screens/IndividualList/IndividualList.js +7 -0
  34. package/build/features/individual/screens/IndividualList/UserList.js +3 -3
  35. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
  36. package/build/features/password/Password.js +1 -1
  37. package/build/features/shared/Button/FlowsButtons.js +7 -1
  38. package/build/features/signIn/SignIn.js +10 -2
  39. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  40. package/build/hooks/index.d.ts +1 -0
  41. package/build/hooks/index.js +1 -0
  42. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  43. package/build/hooks/useFormDirtyCheck.js +66 -0
  44. package/build/utils/common.js +3 -3
  45. package/package.json +2 -2
@@ -59,7 +59,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import API from '../../../api';
60
60
  import { BusinessType, FlowsTypes, DocumentPurpose, LicenseType } from '../../../@types';
61
61
  import { BUSINESS_STEP_NAMES, EXPECTED_SALES_LIST, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_ENTITY_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
62
- import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense, isOtherThanKWOrSA, hasNoneEditableValue } from '../../../utils';
62
+ import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense, isOtherThanKWOrSA, hasNoneEditableValue, sendCustomEventToGTM } from '../../../utils';
63
63
  import { handleNextScreenStep, handlePublicKey, handleSetCountryByIso2 } from '../../../app/settings';
64
64
  export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
65
65
  var payload, data, publicKey, countryIso2, boardData, brandData, isicActivityList, leadData, _a, steps, brand, board_id, business_id, entity, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, list, list;
@@ -759,6 +759,12 @@ export var updateLeadSuccess = createAsyncThunk('businessUpdateLeadSuccess', fun
759
759
  return [4, API.leadService.updateLead(payload)];
760
760
  case 1:
761
761
  data = _g.sent();
762
+ sendCustomEventToGTM({
763
+ event: 'Send Event',
764
+ event_category: 'Account Creation Flow',
765
+ event_action: 'Account Creation Success',
766
+ event_label: settings.data.businessCountry.iso2
767
+ });
762
768
  board_id = data === null || data === void 0 ? void 0 : data.board_id;
763
769
  if (!board_id) return [3, 4];
764
770
  return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
@@ -6,20 +6,8 @@ interface VerifyLeadTokenProps {
6
6
  }
7
7
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
8
8
  data: any;
9
- individualData: any;
10
- boardResponse: {
11
- user: any;
12
- brand: any;
13
- bank_account: any;
14
- entity: any;
15
- merchant: any;
16
- name: any;
17
- contact: any;
18
- individuals: any;
19
- business: any;
20
- entityTypes: any;
21
- notification: any;
22
- };
9
+ entityData: any;
10
+ entityTypes: any;
23
11
  token: string;
24
12
  }, VerifyLeadTokenProps, {
25
13
  state?: unknown;
@@ -45,20 +33,8 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
45
33
  }>;
46
34
  export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
47
35
  data: any;
48
- individualData: any;
49
- boardResponse: {
50
- user: any;
51
- brand: any;
52
- bank_account: any;
53
- entity: any;
54
- merchant: any;
55
- name: any;
56
- contact: any;
57
- individuals: any;
58
- business: any;
59
- entityTypes: any;
60
- notification: any;
61
- };
36
+ entityData: any;
37
+ entityTypes: any;
62
38
  formData: OTPFormValues;
63
39
  }, OTPFormValues, {
64
40
  state?: unknown;
@@ -82,9 +58,12 @@ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<
82
58
  fulfilledMeta?: unknown;
83
59
  rejectedMeta?: unknown;
84
60
  }>;
85
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
86
- data: any;
87
- }, string, {
61
+ type RetrieveBoardProps = {
62
+ boardId: string;
63
+ individualId: string;
64
+ individualType: string;
65
+ };
66
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
88
67
  state?: unknown;
89
68
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
90
69
  extra?: unknown;
@@ -95,7 +74,11 @@ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk
95
74
  rejectedMeta?: unknown;
96
75
  }>;
97
76
  export declare const updateEntityName: import("@reduxjs/toolkit").AsyncThunk<{
98
- data: any;
77
+ data: {
78
+ entity: any;
79
+ documentData: any;
80
+ activityList: any;
81
+ };
99
82
  formData: EntityNameFormValues;
100
83
  }, AsyncThunkParams<EntityNameFormValues>, {
101
84
  state?: unknown;
@@ -121,8 +104,11 @@ export declare const updateEntityCapital: import("@reduxjs/toolkit").AsyncThunk<
121
104
  rejectedMeta?: unknown;
122
105
  }>;
123
106
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
124
- response: any;
125
- formData: void;
107
+ data: any;
108
+ flows?: undefined;
109
+ } | {
110
+ data: any;
111
+ flows: any;
126
112
  } | undefined, void, {
127
113
  state?: unknown;
128
114
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;