@tap-payments/auth-jsconnect 2.6.7-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/@types/app.d.ts +1 -1
- package/build/api/operator.d.ts +2 -0
- package/build/app/settings.js +3 -1
- package/build/features/app/connectExpress/connectExpressStore.js +18 -15
- 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
package/build/@types/app.d.ts
CHANGED
|
@@ -210,7 +210,6 @@ interface LibCallbacks {
|
|
|
210
210
|
}
|
|
211
211
|
export interface LibConfig extends LibCallbacks {
|
|
212
212
|
publicKey: string;
|
|
213
|
-
mode: 'popup' | 'page';
|
|
214
213
|
open: boolean;
|
|
215
214
|
merchantDomain: string;
|
|
216
215
|
language: LanguageMode;
|
|
@@ -220,6 +219,7 @@ export interface LibConfig extends LibCallbacks {
|
|
|
220
219
|
postURL?: string;
|
|
221
220
|
redirectUrl?: string;
|
|
222
221
|
data?: Array<string>;
|
|
222
|
+
mode?: 'popup' | 'page';
|
|
223
223
|
authId?: string;
|
|
224
224
|
boardMaturity?: boolean;
|
|
225
225
|
}
|
package/build/api/operator.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare type ValidateOperatorBody = {
|
|
|
9
9
|
export declare type UpdateOperatorBody = {
|
|
10
10
|
id: string;
|
|
11
11
|
post_url: string;
|
|
12
|
+
authentication_id: string;
|
|
13
|
+
bi: string;
|
|
12
14
|
};
|
|
13
15
|
declare const operatorService: {
|
|
14
16
|
validateOperator: (body: ValidateOperatorBody) => Promise<any>;
|
package/build/app/settings.js
CHANGED
|
@@ -160,7 +160,9 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
|
|
|
160
160
|
id = ((_c = (_b = list === null || list === void 0 ? void 0 : list[0]) === null || _b === void 0 ? void 0 : _b.operator) === null || _c === void 0 ? void 0 : _c.id) || '';
|
|
161
161
|
body = {
|
|
162
162
|
id: id,
|
|
163
|
-
post_url: postURL || ''
|
|
163
|
+
post_url: postURL || '',
|
|
164
|
+
authentication_id: authId || '',
|
|
165
|
+
bi: bi
|
|
164
166
|
};
|
|
165
167
|
return [4, API.operatorService.updateOperator(body)];
|
|
166
168
|
case 2:
|
|
@@ -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:
|
|
@@ -837,7 +838,7 @@ export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDat
|
|
|
837
838
|
export var updateOperatorInfoAsync = createAsyncThunk('connectExpress/updateOperatorInfoAsync', function (_a, thunkApi) {
|
|
838
839
|
var terminalInfo = _a.terminalInfo;
|
|
839
840
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
840
|
-
var _b, connectExpress, settings, responseData, _c, postURL, redirectUrl, bi, body, data,
|
|
841
|
+
var _b, connectExpress, settings, responseData, _c, postURL, redirectUrl, bi, authId, body, data, urlQueryStart;
|
|
841
842
|
var _d, _e, _f, _g, _h;
|
|
842
843
|
return __generator(this, function (_j) {
|
|
843
844
|
switch (_j.label) {
|
|
@@ -846,15 +847,17 @@ export var updateOperatorInfoAsync = createAsyncThunk('connectExpress/updateOper
|
|
|
846
847
|
responseData = connectExpress.data.responseData;
|
|
847
848
|
_c = settings.data.appConfig, postURL = _c.postURL, redirectUrl = _c.redirectUrl;
|
|
848
849
|
bi = settings.data.deviceInfo.browser.browser_id;
|
|
850
|
+
authId = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _d === void 0 ? void 0 : _d.auth) === null || _e === void 0 ? void 0 : _e.id;
|
|
849
851
|
body = {
|
|
850
|
-
id: ((
|
|
851
|
-
post_url: postURL || ''
|
|
852
|
+
id: ((_f = terminalInfo === null || terminalInfo === void 0 ? void 0 : terminalInfo.operator) === null || _f === void 0 ? void 0 : _f.id) || '',
|
|
853
|
+
post_url: postURL || '',
|
|
854
|
+
authentication_id: authId,
|
|
855
|
+
bi: bi
|
|
852
856
|
};
|
|
853
857
|
return [4, API.operatorService.updateOperator(body)];
|
|
854
858
|
case 1:
|
|
855
859
|
data = _j.sent();
|
|
856
|
-
(
|
|
857
|
-
authId = (_h = (_g = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _g === void 0 ? void 0 : _g.auth) === null || _h === void 0 ? void 0 : _h.id;
|
|
860
|
+
(_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, data);
|
|
858
861
|
if (authId) {
|
|
859
862
|
if (settings.data.appConfig.mode === 'popup') {
|
|
860
863
|
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
@@ -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);
|