@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
@@ -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
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
@@ -27,30 +15,25 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
27
15
  }, void, {}>;
28
16
  export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
29
17
  data: any;
30
- individualData: any;
31
- boardResponse: {
32
- user: any;
33
- brand: any;
34
- bank_account: any;
35
- entity: any;
36
- merchant: any;
37
- name: any;
38
- contact: any;
39
- individuals: any;
40
- business: any;
41
- entityTypes: any;
42
- notification: any;
43
- };
18
+ entityData: any;
19
+ entityTypes: any;
44
20
  formData: OTPFormValues;
45
21
  }, OTPFormValues, {}>;
46
22
  export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
47
23
  flows: any;
48
24
  }, void, {}>;
49
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
50
- data: any;
51
- }, string, {}>;
25
+ declare type RetrieveBoardProps = {
26
+ boardId: string;
27
+ individualId: string;
28
+ individualType: string;
29
+ };
30
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {}>;
52
31
  export declare const updateEntityName: import("@reduxjs/toolkit").AsyncThunk<{
53
- data: any;
32
+ data: {
33
+ entity: any;
34
+ documentData: any;
35
+ activityList: any;
36
+ };
54
37
  formData: EntityNameFormValues;
55
38
  }, AsyncThunkParams<EntityNameFormValues>, {}>;
56
39
  export declare const updateEntityCapital: import("@reduxjs/toolkit").AsyncThunk<{
@@ -58,8 +41,11 @@ export declare const updateEntityCapital: import("@reduxjs/toolkit").AsyncThunk<
58
41
  formData: EntityCapitalFormValues;
59
42
  }, AsyncThunkParams<EntityCapitalFormValues>, {}>;
60
43
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
61
- response: any;
62
- formData: void;
44
+ data: any;
45
+ flows?: undefined;
46
+ } | {
47
+ data: any;
48
+ flows: any;
63
49
  } | undefined, void, {}>;
64
50
  export declare const onCloseCompleteEntity: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
65
51
  declare type VerifyData = {