@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.
- 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
|
@@ -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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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:
|
|
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
|
-
|
|
62
|
-
|
|
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 = {
|