@tap-payments/auth-jsconnect 2.6.8-test → 2.6.9-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.
- package/build/features/app/connectExpress/connectExpressStore.js +11 -10
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -2
- package/package.json +1 -1
|
@@ -720,23 +720,24 @@ export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/ch
|
|
|
720
720
|
});
|
|
721
721
|
});
|
|
722
722
|
export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
723
|
-
var _a, connectExpress, settings, _b, responseData, showBoard, body, data,
|
|
724
|
-
var
|
|
725
|
-
return __generator(this, function (
|
|
726
|
-
switch (
|
|
723
|
+
var _a, connectExpress, settings, _b, responseData, showBoard, _c, postURL, scope, body, data, _d, boardInfo, boardData;
|
|
724
|
+
var _e, _f, _g, _h, _j, _k;
|
|
725
|
+
return __generator(this, function (_l) {
|
|
726
|
+
switch (_l.label) {
|
|
727
727
|
case 0:
|
|
728
728
|
_a = thunkApi.getState(), connectExpress = _a.connectExpress, settings = _a.settings;
|
|
729
729
|
_b = connectExpress.data, responseData = _b.responseData, showBoard = _b.showBoard;
|
|
730
|
+
_c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope;
|
|
730
731
|
body = {
|
|
731
732
|
lead_id: responseData === null || responseData === void 0 ? void 0 : responseData.leadData.id,
|
|
732
|
-
post_url:
|
|
733
|
+
post_url: scope === SCOPE_AUTH ? '' : postURL || ''
|
|
733
734
|
};
|
|
734
735
|
return [4, API.accountService.expressCreateAccount(body)];
|
|
735
736
|
case 1:
|
|
736
|
-
data =
|
|
737
|
-
(
|
|
738
|
-
(
|
|
739
|
-
(
|
|
737
|
+
data = _l.sent();
|
|
738
|
+
(_f = (_e = settings.data.appConfig).onCreated) === null || _f === void 0 ? void 0 : _f.call(_e, data);
|
|
739
|
+
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, data);
|
|
740
|
+
(_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, data);
|
|
740
741
|
if (!showBoard) return [3, 3];
|
|
741
742
|
return [4, Promise.all([
|
|
742
743
|
API.boardService.retrieveBoardInfo({ id: data.board_id, infoId: data.board_info_id }),
|
|
@@ -744,7 +745,7 @@ export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAs
|
|
|
744
745
|
thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()
|
|
745
746
|
])];
|
|
746
747
|
case 2:
|
|
747
|
-
|
|
748
|
+
_d = _l.sent(), boardInfo = _d[0], boardData = _d[1];
|
|
748
749
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
749
750
|
return [2, { boardInfo: boardInfo, boardData: boardData, account: data }];
|
|
750
751
|
case 3:
|
|
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
|
|
|
21
21
|
var _a = useAppSelector(bankSelector), data = _a.data, loading = _a.loading;
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
24
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
25
24
|
var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompleteBank());
|
|
28
27
|
};
|
|
29
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication
|
|
28
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined }));
|
|
30
29
|
};
|
|
31
30
|
export default memo(SuccessWithFlowButtons);
|
|
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
|
|
|
21
21
|
var _a = useAppSelector(brandSelector), data = _a.data, loading = _a.loading;
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
24
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
25
24
|
var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompleteBrand());
|
|
28
27
|
};
|
|
29
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication
|
|
28
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined }));
|
|
30
29
|
};
|
|
31
30
|
export default memo(SuccessWithFlowButtons);
|
package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js
CHANGED
|
@@ -22,7 +22,6 @@ var SuccessWithFlowButtons = function () {
|
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var _a = useAppSelector(connectExpressSelector), data = _a.data, loading = _a.loading;
|
|
24
24
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
25
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompleteAsync());
|
|
28
27
|
};
|
|
@@ -37,6 +36,6 @@ var SuccessWithFlowButtons = function () {
|
|
|
37
36
|
var name = _a.name;
|
|
38
37
|
return name !== FlowsTypes.PASSWORD;
|
|
39
38
|
}); }, [flows]);
|
|
40
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, bank: bank, loading: loading, boardId: boardId, boardInfoId: boardInfoId, brand: brand, business: business, entity: entity, flows: filteredFlows || [], merchant: merchant, individuals: individualsInfo, user: __assign({ names: { en: name } }, user), onClose: isScopeAuthentication
|
|
39
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, bank: bank, loading: loading, boardId: boardId, boardInfoId: boardInfoId, brand: brand, business: business, entity: entity, flows: filteredFlows || [], merchant: merchant, individuals: individualsInfo, user: __assign({ names: { en: name } }, user), onClose: isScopeAuthentication ? onClose : undefined }));
|
|
41
40
|
};
|
|
42
41
|
export default memo(SuccessWithFlowButtons);
|
|
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
|
|
|
21
21
|
var _a = useAppSelector(entitySelector), data = _a.data, loading = _a.loading;
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
24
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
25
24
|
var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompleteEntity());
|
|
28
27
|
};
|
|
29
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, individuals: individuals, boardInfoId: board_info_id, flows: flows || [], onClose: isScopeAuthentication
|
|
28
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, individuals: individuals, boardInfoId: board_info_id, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined }));
|
|
30
29
|
};
|
|
31
30
|
export default memo(SuccessWithFlowButtons);
|
|
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
|
|
|
21
21
|
var _a = useAppSelector(individualSelector), data = _a.data, loading = _a.loading;
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
24
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
25
24
|
var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompleteIndividual());
|
|
28
27
|
};
|
|
29
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication
|
|
28
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined }));
|
|
30
29
|
};
|
|
31
30
|
export default memo(SuccessWithFlowButtons);
|
|
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
|
|
|
21
21
|
var _a = useAppSelector(passwordSelector), data = _a.data, loading = _a.loading;
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
24
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
25
24
|
var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompletePassword());
|
|
28
27
|
};
|
|
29
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication
|
|
28
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined }));
|
|
30
29
|
};
|
|
31
30
|
export default memo(SuccessWithFlowButtons);
|
|
@@ -21,11 +21,10 @@ var SuccessWithFlowButtons = function () {
|
|
|
21
21
|
var _a = useAppSelector(taxSelector), data = _a.data, loading = _a.loading;
|
|
22
22
|
var settingsData = useAppSelector(settingsSelector).data;
|
|
23
23
|
var isScopeAuthentication = settingsData.appConfig.scope === SCOPE_AUTH;
|
|
24
|
-
var redirectUrl = settingsData.appConfig.redirectUrl;
|
|
25
24
|
var _b = data.verify.responseBody || {}, flows = _b.flows, entity = _b.entity, brand = _b.brand, bank = _b.bank_account, merchant = _b.merchant, user = _b.user, business = _b.business, board_id = _b.board_id, board_info_id = _b.board_info_id, name = _b.name, individuals = _b.individuals;
|
|
26
25
|
var onClose = function () {
|
|
27
26
|
dispatch(onCloseCompleteTax());
|
|
28
27
|
};
|
|
29
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication
|
|
28
|
+
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, loading: loading, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [], onClose: isScopeAuthentication ? onClose : undefined }));
|
|
30
29
|
};
|
|
31
30
|
export default memo(SuccessWithFlowButtons);
|