@tap-payments/auth-jsconnect 2.8.70-development → 2.8.71-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.
|
@@ -71,7 +71,7 @@ import API from '../../../api';
|
|
|
71
71
|
import { FlowsTypes, IndividualGender, DocumentPurpose } from '../../../@types';
|
|
72
72
|
import { handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
73
73
|
import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES, MONTHLY_INCOME_LIST } from '../../../constants';
|
|
74
|
-
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType, isOtherThanKWOrSA, isKWOrSA, isSA } from '../../../utils';
|
|
74
|
+
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType, isOtherThanKWOrSA, isKWOrSA, isSA, sendCustomEventToGTM } from '../../../utils';
|
|
75
75
|
export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
|
|
76
76
|
var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
|
|
77
77
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -836,6 +836,12 @@ export var updateBoardSuccess = createAsyncThunk('individualUpdateBoardSuccess',
|
|
|
836
836
|
return [4, API.boardService.updateBoardInfo(__assign({ id: board_id, infoId: infoId }, payload))];
|
|
837
837
|
case 1:
|
|
838
838
|
data = _p.sent();
|
|
839
|
+
sendCustomEventToGTM({
|
|
840
|
+
event: 'Send Event',
|
|
841
|
+
event_category: 'Board Flows - Individual',
|
|
842
|
+
event_action: 'Individual Update Success Page',
|
|
843
|
+
event_label: settings.data.businessCountry.iso2
|
|
844
|
+
});
|
|
839
845
|
if (!showBoard && mode === 'content') {
|
|
840
846
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
841
847
|
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: data });
|
|
@@ -51,7 +51,7 @@ import API from '../../../api';
|
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
52
|
import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
53
53
|
import { PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '../../../constants';
|
|
54
|
-
import { retrieveIndividualData, sleep } from '../../../utils';
|
|
54
|
+
import { retrieveIndividualData, sendCustomEventToGTM, sleep } from '../../../utils';
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (_a, thunkApi) {
|
|
56
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
57
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -248,6 +248,12 @@ export var updateBoardSuccess = createAsyncThunk('passwordUpdateBoardSuccess', f
|
|
|
248
248
|
return [4, API.boardService.updateBoardInfo(__assign({ id: board_id, infoId: infoId }, payload))];
|
|
249
249
|
case 1:
|
|
250
250
|
data = _p.sent();
|
|
251
|
+
sendCustomEventToGTM({
|
|
252
|
+
event: 'Send Event',
|
|
253
|
+
event_category: 'Board Flows - Password',
|
|
254
|
+
event_action: 'Password Update Success Page',
|
|
255
|
+
event_label: settings.data.businessCountry.iso2
|
|
256
|
+
});
|
|
251
257
|
if (!showBoard && mode === 'content') {
|
|
252
258
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
253
259
|
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: data });
|
|
@@ -162,7 +162,9 @@ export default function FlowsButtons(_a) {
|
|
|
162
162
|
var onRedirect = function (item) {
|
|
163
163
|
if (!item.href)
|
|
164
164
|
return;
|
|
165
|
-
var name =
|
|
165
|
+
var name = item.name === FlowsTypes.BANK ? 'Wallet' : capitalize(item.name);
|
|
166
|
+
if (item.name === FlowsTypes.PASSWORD)
|
|
167
|
+
name = 'Set Password';
|
|
166
168
|
sendCustomEventToGTM({
|
|
167
169
|
event: 'Send Event',
|
|
168
170
|
event_category: "Board Flows - ".concat(name),
|