@tap-payments/auth-jsconnect 2.1.29-test → 2.1.30-test
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.
|
@@ -55,6 +55,13 @@ export declare const resetPassword: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
55
55
|
}, OTPFormValues, {}>;
|
|
56
56
|
export declare const retrieveBoardResetPasswordSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
57
57
|
id: any;
|
|
58
|
+
response: {
|
|
59
|
+
flows: {
|
|
60
|
+
name: string;
|
|
61
|
+
status: string;
|
|
62
|
+
url: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
58
65
|
}, void, {}>;
|
|
59
66
|
declare type VerifyData = {
|
|
60
67
|
token: string;
|
|
@@ -211,6 +211,7 @@ export var updateBoardSuccess = createAsyncThunk('passwordUpdateBoardSuccess', f
|
|
|
211
211
|
_g.sent();
|
|
212
212
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
213
213
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
214
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
214
215
|
return [2, { response: __assign(__assign({}, data), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []) }), formData: params }];
|
|
215
216
|
}
|
|
216
217
|
});
|
|
@@ -288,20 +289,23 @@ export var resetPassword = createAsyncThunk('resetPassword', function (params, t
|
|
|
288
289
|
});
|
|
289
290
|
}); });
|
|
290
291
|
export var retrieveBoardResetPasswordSuccess = createAsyncThunk('retrieveBoardResetPasswordSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
|
-
var _a, password, settings, id;
|
|
292
|
+
var _a, password, settings, id, boardInfoData;
|
|
292
293
|
var _b, _c, _d, _e;
|
|
293
294
|
return __generator(this, function (_f) {
|
|
294
295
|
switch (_f.label) {
|
|
295
296
|
case 0:
|
|
296
297
|
_a = thunkApi.getState(), password = _a.password, settings = _a.settings;
|
|
297
298
|
id = (password.data.verify.responseBody || { board_id: '' }).board_id;
|
|
298
|
-
return [4,
|
|
299
|
+
return [4, API.boardService.retrieveBoardInfoStatus(id)];
|
|
299
300
|
case 1:
|
|
301
|
+
boardInfoData = _f.sent();
|
|
302
|
+
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
303
|
+
case 2:
|
|
300
304
|
_f.sent();
|
|
305
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
301
306
|
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, { id: id });
|
|
302
307
|
(_e = (_d = settings.data.appConfig).onFlowCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, id);
|
|
303
|
-
|
|
304
|
-
return [2, { id: id }];
|
|
308
|
+
return [2, { id: id, response: { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []) } }];
|
|
305
309
|
}
|
|
306
310
|
});
|
|
307
311
|
}); });
|
|
@@ -512,9 +516,12 @@ export var passwordSlice = createSlice({
|
|
|
512
516
|
state.error = action.error.message;
|
|
513
517
|
state.loading = false;
|
|
514
518
|
})
|
|
515
|
-
.addCase(retrieveBoardResetPasswordSuccess.fulfilled, function (state) {
|
|
519
|
+
.addCase(retrieveBoardResetPasswordSuccess.fulfilled, function (state, action) {
|
|
516
520
|
state.loading = false;
|
|
517
521
|
state.error = null;
|
|
522
|
+
var response = (action.payload || {}).response;
|
|
523
|
+
var flows = response.flows;
|
|
524
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
518
525
|
})
|
|
519
526
|
.addCase(retrieveBoardResetPasswordSuccess.pending, function (state) {
|
|
520
527
|
state.loading = true;
|
|
@@ -20,7 +20,6 @@ var Success = function (_a) {
|
|
|
20
20
|
}, []);
|
|
21
21
|
var onSuccess = function () {
|
|
22
22
|
setClicked(true);
|
|
23
|
-
dispatch(retrieveBoardResetPasswordSuccess());
|
|
24
23
|
};
|
|
25
24
|
return (_jsx(SuccessScreen, { title: t('password_success_title'), onSuccess: onSuccess, successTitle: t('continue'), loading: clicked && loading, error: error || '' }));
|
|
26
25
|
};
|